Advertisement
FL1K3R

FiveReborn Turn Signals

Dec 30th, 2016
402
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 KB | None | 0 0
  1. -- first maded by Apocalyptikz
  2. local ind = {l = false, r = false}
  3.  
  4. Citizen.CreateThread(function()
  5.     while true do
  6.         Wait(0)
  7.         if IsPedSittingInAnyVehicle(GetPlayerPed(-1)) then
  8.             if GetPedInVehicleSeat(GetVehiclePedIsUsing(GetPlayerPed(-1)), -1) == GetPlayerPed(-1) then
  9.                 if IsControlJustPressed(1, 190) then -- l
  10.                     ind.l = not ind.l
  11.                     SetVehicleIndicatorLights(GetVehiclePedIsUsing(GetPlayerPed(-1)), 0, ind.l)
  12.                 end
  13.                 if IsControlJustPressed(1, 189) then --r
  14.                     ind.r = not ind.r
  15.                     SetVehicleIndicatorLights(GetVehiclePedIsUsing(GetPlayerPed(-1)), 1, ind.r)
  16.                 end
  17.             end
  18.         end
  19.     end
  20. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement