Client Exports
Within this asset you will find more snippets in client/custom/examples.lua, also if you are creating a custom application, make use of the documents section for Create Custom Apps.
Here you will find all the useful exports for this asset, please read each step and example carefully to better understand how it works, we do not recommend using these if you are not an experienced developer.
InPhone
Check if your phone is open or not, useful to avoid opening menus while using the phone.
An example of using this system would be the following.
SetCanOpenPhone
This export allows you to use or block the phone.
An example of using this system would be the following.
ClosePhone
Exports to close the simple phone
handleClosePhone
Add external events inside this AddEventHablder to handle closing the phone.
IsInCamera
Use the camera to deactivate or activate the map on your hud.
An example of using this system would be the following.
Last updated
Was this helpful?