Client Exports

IsPlayerInRace

To check if a player is inside a race.

-- Return a bool
local inRace = exports["origen_races"]:IsPlayerInRace()

Example of use

RegisterCommand('testRace', function()
    local inRace = exports["origen_races"]:IsPlayerInRace()
    print("User in race: ", inRace)
end)

Last updated