#Panic Button (10-13a & 10-13b) NoPixel Inspired Snippet
1 messages · Page 1 of 1 (latest)
Look at how other commands are made, and make it call the events
But please use #💬︱support for help.
My bad 👍
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if Player.PlayerData.job.type == "leo" and Player.PlayerData.job.onduty then
TriggerClientEvent("police:client:SendPoliceEmergencyAlert", src)
else
TriggerClientEvent('QBCore:Notify', src, Lang:t("error.on_duty_police_only"), 'error')
end
end)```
chuck that in qb-policejob / server / main.lua
you can change the command and the event
all g
how can i add a sound to when you press the button?
Your interaction sound
Also if u don’t have the ps-dispatch download that it comes with the sound
I have the ps dispatch but I press 10-13a and it shows but doesn’t make a noise