๐น๏ธGame Mode
The GameMode features allow easy access to certain parts of the current mission.
Global Variables
These variables are updated every second.
PlayerPed = PlayerPedId()
PlayerPosition = GetEntityCoords(PlayerPed)
PlayerGameId = PlayerId()
Helper = table
Usage
In the mission stage you can use a normal LUA variable:
local whileFunc = function()
local dist = math.floor(#( - vec3(1,1,1)))
if dist > 5 then
print("Not Hello!")
end
print("Hello")
end
Global Functions
Wait(ms) -- Regular FX Wait
---- You can sleep un runtime
GM() -- Access to Gamemode functions
---- You can access in all mission code
GM().GetGameVariales()
This function allows quick access to game variables at runtime.
GM().SyncGameVariable()
[NETWORKING] This option allows synchronization with all players ONLY when doing a mission in cooperative mode.
Last updated
Was this helpful?