Exports
Export List
OpenBoss
none
none
Open Boss Menu
OpenJail
none
none
Open Jail Input Menu
OpenFine
none
none
Open Billing Input Menu
OpenService
none
none
Open Public Service Input Menu
IsHandcuffed
none
bool
Returns if player is cuffed or not
SearchPlayer
none
none
Open closest player inventory
SeizeCash
none
none
Seize closest player cash
RobPlayer
none
none
Rob closest player
OpenJobMenu
none
none
Open F6 Police Job Menu
AttachWheelLock
none
none
Attach wheel lock to vehicle wheel
RemoveWheelLock
none
none
Detach wheel lock from wheel
ShowBadge
none
none
Show officer's badge
EditBadge
none
none
Open badge edit input
SetCallsign
callsign: string
none
Set callsign to defined value
OpenRadio
none
none
Open radio
OpenGps
none
none
Open gps device
PlaceGps
none
none
Place gps to nearby vehicle
RemoveGps
none
none
Remove attached gps from nearby vehicle
PanicButton
coords: vec3
, name: string
none
Create panic button notification
How to use exports?
Exports are used for different purposes in different places. For example, if I want to turn on the GPS and do it with a command (normally, this is already available in the police job, but I'm explaining it just as a code example), I need to use the following code:
If the export requires various parameters, we need to provide the correct data. I am writing an
SetCallsign export:
PanicButton export:
If an export returns data and you want to obtain this data, you can refer to the following examples
Last updated