Hello !
when there's an event handler like below,
function vehicleEnter(vehicle,seat)
if seat == 0 then
outputChatBox("You have entered a "..getVehicleName(vehicle),source,255,255,0)
end
end
addEventHandler("onPlayerVehicleEnter",root,vehicleEnter)
we can remove it from one line code like below,
removeEventHandler("onPlayerVehicleEnter",root,vehicleEnter)
So that's all. BUT !,
when there's an event handler like below,
addEventHandler("onPlayerVehicleEnter",root,
function (vehicle,seat)
if seat == 0 then
outputChatBox("You have entered a "..getVehicleName(vehicle),source,255,255,0)
end
end
)
How to remove that event handler ? are there any way ?