this is my code:
function onQuit(thePlayer)
for i,v in pairs(getElementsByType("vehicle",resourceRoot)) do
if getElementData(v,"oveie") == getPlayerName(thePlayer) then
destroyElement(v)
end
end
end
addEventHandler ( "onPlayerQuit", root, onQuit )
but this does not working.. why? how to fix it?