v10networkscom / saltychat-fivem

FiveM implementation of Salty Chat (TeamSpeak 3 based Voice Plugin)
https://gaming.v10networks.com
GNU General Public License v3.0
70 stars 64 forks source link

Radio as item #124

Open fabiohouse opened 2 years ago

fabiohouse commented 2 years ago

Hello, How can i restrict the use of radio only if user have the "radio" item in inventory? 👍

BlackFlash5 commented 2 years ago

There is no integration into any other framework, we only provide standalone resources. You'd either have to modify the script yourself or we could implement an enable/disable export. Such an export could be used to monitor the players inventory (preferably with a hook when an item was added/removed) and disables/enables the usage of the radio.

fabiohouse commented 1 year ago

Hello, Thanks for the answer. I Will apreciate if you build an export to switch on or off the radio. This feature can give me a lot of possibility for example: switch off the radio if the player are swimming.

Thanks for your time, Fabio.