Client Exports

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.


getBattery

Returns the value of your phone's current battery.

-- Export to check battery from the client-side
exports['qs-smartphone']:getBattery()

CheckSignal

Returns in boolean form whether or not you have a signal on your phone.

-- Check the signal from the client-side
exports['qs-smartphone']:CheckSignal()

InPhone

Check if your phone is open or not, useful to avoid opening menus while using the phone.

-- Check if you are with the phone open
exports['qs-smartphone']:InPhone()

canUsePhone

Block or unblock the use of the phone, you can block the use of the phone in other assets such as handcuffs or similar examples.

-- bool : true o false
exports['qs-smartphone']:canUsePhone(bool)

Last updated