Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RegisterServerEvent('service:startCall')
- AddEventHandler('service:startCall', function (number, message, coords)
- local source = source
- local user_id = vRP.getUserId({source})
- if number == "Politi-Job" or number == "EMS-Job" then
- vRP.getUserIdentity({user_id, function(identity)
- local discord = "https://discordapp.com/api/webhooks/539934609995988992/EIuqjZEk4yZZKyNLiF7HZNDPtFd5o0aMbsoMrco5JCVvW3rF8Mb4vDZMYFEDiiNvnr_M"
- if number == "EMS-Job" then
- discord = "https://discordapp.com/api/webhooks/539934662387302415/WkoqvnUXmiplhK8eDwFhWjNHqY4sT_Yxgnu4YGILCUkEsBc_JwgF-_V-V437FKqQ3mWx"
- end
- webhookDiscord(identity.phone.." - "..identity.firstname.." "..identity.name,message,discord)
- end})
- end
- if PhoneNumbers[number] ~= nil then
- vRP.getUserIdentity({user_id, function(identity)
- local phone = identity.phone
- notifyAlertSMS(number, {
- message = message,
- coords = (number == "Politi-Job" or number == "EMS-Job" or number == "Mekaniker-Job" or number == "Taxi") == true and coords or nil,
- numero = phone,
- userid = user_id,
- }, PhoneNumbers[number].sources)
- end})
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement