saluta Posted April 26, 2021 Share Posted April 26, 2021 Please help, my code: setTimer(function() if getElementData(getPedOccupiedVehicle ( localPlayer ), "leftflash" ) then if veh then else playSound("files/povorot.mp3",false) end end if getElementData(getPedOccupiedVehicle ( localPlayer ), "rightflash" ) then if veh then else playSound("files/povorot.mp3",false) end end if getElementData(getPedOccupiedVehicle ( localPlayer ), "allflash" ) then if veh then else playSound("files/povorot.mp3",false) end end end, interval * 1000 , 0) Link to comment
Doongogar Posted March 20, 2023 Share Posted March 20, 2023 (edited) probably this check "if veh then" checks if the player is in a vehicle and it is being triggered after picking up the player that is in the car, you would have to put the "if veh then" before picking up the player that is in the vehicle , of course, if this check is really what I'm thinking text translated by google translator setTimer(function() if veh then if getElementData(getPedOccupiedVehicle ( localPlayer ), "leftflash" ) then end else playSound("files/povorot.mp3",false) end if veh then if getElementData(getPedOccupiedVehicle ( localPlayer ), "rightflash" ) then end else playSound("files/povorot.mp3",false) end if veh then if getElementData(getPedOccupiedVehicle ( localPlayer ), "allflash" ) then end else playSound("files/povorot.mp3",false) end end, interval * 1000 , 0) Edited March 20, 2023 by SciptNovato Link to comment
Recommended Posts