API
Exports
AddVirtualRadio(vector3 coords, string uniqid)
uniqid
must be same for each client or radio won't be syncedAdd openable boombox on certain coords:
void
IsRadioClose()
- Check if player has radio closed:boolean
IsRadioOnShoulder()
- Check if player has radio on his shoulder:boolean
DeleteShoulderRadio()
- Delete radio on player's shoulder and give it back to his inventory:void
Events
AddEventHandler("xradio:menuOpened", function(type) end)
- Called when opening menuTriggerEvent("xradio:openRadio")
Open radio UI on groundTriggerEvent("xradio:radioOnShoulder")
- Equip radio to shoulderTriggerEvent("xradio:deleteRadioOnGround")
- Remove radio from groundTriggerEvent("xradio:openShoulderUi")
- Open radio UI on shoulderTriggerEvent("xradio:hideShoulderRadio")
Remove radio from player's shoulderTriggerEvent("xradio:putRadioBackGround")
- Put radio back on the ground
Example
Last updated