#Panic Button (10-13a & 10-13b) NoPixel Inspired Snippet

1 messages · Page 1 of 1 (latest)

silent jetty
#

do you have any idea how to make this a command as well?

#

or atleast know where to start?

#

wicked release tho

frozen isle
#

Look at how other commands are made, and make it call the events

frozen isle
#

But please use #💬︱support for help.

silent jetty
#

My bad 👍

nimble halo
# silent jetty do you have any idea how to make this a command as well?
    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

silent jetty
#

Oh wow, wicked

#

I appreciate it dude.

nimble halo
steel cave
#

how can i add a sound to when you press the button?

warm nest
#

Also if u don’t have the ps-dispatch download that it comes with the sound

steel cave