ChainsBoy

Might work, seems to work, donno, try it

Aug 18th, 2016
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.60 KB | None | 0 0
  1. RegisterNetEvent("code")
  2. AddEventHandler("code", function()
  3.     Citizen.CreateThread(function()
  4.         if IsPedInVehicle(GetPlayerPed(-1), vehicle, false) == false then
  5.             print("You Are Not In A Vehicle")
  6.             return;
  7.         end
  8.          
  9.         local playerVehicle = GetVehiclePedIsIn(GetPlayerPed(-1), false)
  10.         if IsVehicleSirenOn(playerVehicle) == true then                    
  11.             print("Off")
  12.             SetVehicleSiren(playerVehicle, toggle)
  13.         else
  14.             print("On")
  15.             SetVehicleSiren(playerVehicle, toggle)
  16.         end
  17.     end)
  18. end)
Advertisement
Add Comment
Please, Sign In to add comment