Misc

OpenExtrasMenu

With following export you can open vehicle extras menu

exports['p_policejob']:OpenExtrasMenu()

ToggleRadar

Use following export to toggle police radar.

exports['p_policejob']:ToggleRadar()

EditRadar

Use following command to edit radar size or position.

/edit_radar

PlayAudio

Use following export to play audio for one player.

exports['p_policejob']:PlayAudio(file, volume)
  • file: string

    • File name from web folder

  • volume: number

    • Value between 0.0 - 1.0


TrunkEditor

Use following export to open trunk editor.

You can also use command.


Camera Creator

Use following command to open camera creator.


Camera Remove

Use following command to remove closest camera


CreateOutfitMenu

Use following export to open outfit creator menu

You can also use a command


RemoveOutfitMenu

Use following export to open outfit remove menu

You can also use a command


getRadarPlates

Use following exports to get front or rear antena plate

Return:

  • frontPlate: string or nil

Return:

  • rearPlate: string or nil


hasTrackingBand

Use following statebag to check if player has tracking band

  • playerId: number

    • Existing player server id

Return:

  • state: boolean


Create Ticket

Last updated