Jump to content

Bad argument @'getElementData'


saluta

Recommended Posts

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
  • 1 year later...

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 by SciptNovato
Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...