Exports

getCrew()

Retrieve the player crew or return false if not an active member.

local myCrew = exports['av_racing']:getCrew()
if myCrew then -- returns a table {name:string, label:string and isBoss:boolean}
    print("Crew Name: "..myCrew['name'])
    print("Crew Label: "..myCrew['label'])
    print("Crew Label: ", myCrew['isBoss'])
else
    print("Not a crew member")
end

inRace()

Returns false if player is not in a race or a table with the following data:

  • started:boolean Race is in progress

  • raceId:string Race ID

  • isPassenger:boolean false means player is driver, true is passenger.

quitRace()

Removes the player from a race, returns true if player was actually in a race and was successfully removed.

Last updated