Learn more about custom integrations with the in-game resource!
Push-to-talk
When a user presses or releases their PTT key, the following event can be used:
-- Event sent from Sonoran RadioTriggerEvent('SonoranRadio::API:ToggleTalking', toggle, inVeh)-- Event listener in a custom scriptRegisterNetEvent('SonoranRadio::API:ToggleTalking', function(toggle,inVeh) print(toggle) -- Boolean (Are the talking?)print(inVeh) -- Boolean (Are they in a vehicle)end)