How to get "StartAlarm" to trigger for everyone?

I found something interesting just to change it … I would do that when I have time

if IsControlJustReleased( 0, 19 ) then – INPUT_CHARACTER_WHEEL (LEFT ALT)
TriggerServerEvent(‘InteractSound_SV:PlayOnSource’, ‘off’, 0.1)
ClearPedTasks(ped)
SetEnableHandcuffs(ped, false)
else
if IsControlJustPressed( 0, 19 ) and CheckSkin(ped) and not IsPlayerFreeAiming(PlayerId()) then – INPUT_CHARACTER_WHEEL (LEFT ALT)
TriggerServerEvent(‘InteractSound_SV:PlayOnSource’, ‘on’, 0.1)

1 Like

Yes, if you’re coding server-side and wish to trigger a client event, putting 1 would trigger it for the person with ID 1 in-game. Triggering it to -1 would trigger it to everyone.