Download Luar/moonloader/lib/SFlua/basic.lua from andy-gg/LUAR_RP_PC: direct link, hf CLI and curl.
- Browser
- Download file 790 Bytes
-
https://huggingface.co/datasets/andy-gg/LUAR_RP_PC/resolve/main/Luar/moonloader/lib/SFlua/basic.lua
- Command line
-
hf download hf://datasets/andy-gg/LUAR_RP_PC/Luar/moonloader/lib/SFlua/basic.lua
-
curl -L -o basic.lua https://huggingface.co/datasets/andy-gg/LUAR_RP_PC/resolve/main/Luar/moonloader/lib/SFlua/basic.lua
790 Bytes
| --[[ | |
| Project: SF.lua <https://github.com/imring/SF.lua> | |
| License: MIT License | |
| Author: imring | |
| ]] | |
| local ffi = require 'ffi' | |
| local sampapi = require 'sampapi' | |
| local netgame = sampapi.require('CNetGame', true) | |
| require 'sampfuncs' | |
| function sampGetBase() | |
| return sampapi.GetBase() | |
| end | |
| function sampGetVersion() | |
| return sampapi.GetSAMPVersion() | |
| end | |
| function isSampLoaded() | |
| return sampapi.GetBase() ~= 0 | |
| end | |
| function isSampfuncsLuaLoaded() | |
| return sampapi.GetSAMPVersion() ~= ffi.C.SAMP_VERSION_UNKNOWN | |
| end | |
| function isSampAvailable() | |
| return isSampLoaded() and netgame.RefNetGame() ~= nil | |
| end | |
| jit.off(isSampAvailable, true) | |
| isSampfuncsLoaded = isSampfuncsLuaLoaded | |
| if not isSampfuncsConsoleActive then | |
| function isSampfuncsConsoleActive() return false end | |
| end |