SHARE
TWEET

Untitled

a guest Sep 11th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- Police
  2. RegisterNetEvent("SAFOS:policeduty")
  3. AddEventHandler("SAFOS:policeduty", function()
  4.     local str = nil
  5.     policeduty = not policeduty
  6.     if policeduty or emsduty then
  7.       str = " på arbejde som politibetjent"
  8.       local models = GetHashKey("s_m_y_cop_01")
  9.         RequestModel(models)
  10.       while not HasModelLoaded(models) do
  11.         RequestModel(models)
  12.         Citizen.Wait(0)
  13.       end
  14.         inServiceCops = true
  15.         peds = GetPlayerPed(-1)
  16.         ids = GetPlayerServerId(PlayerId())
  17.         print(ids.." -your server id")
  18.         TriggerServerEvent("eblips:add", {name = "Betjent", src = ids, color = 3}) -- can be used with blips https://forum.fivem.net/t/release-emergencyblips/493022
  19.         TriggerServerEvent("exports.tokovoip_script:addPlayerToRadio(< 25 > )")
  20.         print(inServiceCops)
  21.       local playerPed = GetPlayerPed(-1)
  22.     else
  23.       str = " gået fra arbejdet"
  24.       inServiceCops = false
  25.       print(ids.." -your server id2")
  26.       TriggerServerEvent("eblips:remove", ids)
  27.       TriggerServerEvent("removePlayerFromRadio")
  28.     end
  29.     exports['mythic_notify']:DoHudText('inform', "Du er nu"..str..".")
  30. end)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top