function deleteThisVehicle(thePlayer, commandName)local veh = getPedOccupiedVehicle(thePlayer) local dbid = getElementData(veh, \"dbid\")if (exports.global:isPlayerSuperAdmin(thePlayer)) thenif dbid < 2 or exports.global:isPlayerSuperAdmin(thePlayer) then if not (isPedInVehicle(thePlayer)) then outputChatBox(\"Nem ülsz járműben!\", thePlayer, 0, 0, 0, true) else if dbid > 2 then mysql:query_free(\"DELETE FROM vehicles WHERE id=\'\" .. mysql:escape_string(dbid) .. \"\'\") call( getResourceFromName( \"item-system\" ), \"deleteAll\", 3, dbid ) call( getResourceFromName( \"item-system\" ), \"clearItems\", veh ) exports.logs:logMessage(\"[DELVEH] \" .. getPlayerName( thePlayer ) .. \" torolve lett az #\" .. dbid .. \" es idju jarmu.\", 9) end destroyElement(veh) endelse outputChatBox(\"Nincs megfelelõ jogosultságod.\", thePlayer, 0, 0, 0, true) returnendendendaddCommandHandler(\"delthisveh\", deleteThisVehicle, false, false)addCommandHandler(\"delthis\", deleteThisVehicle, false, false)
function deleteThisVehicle(thePlayer, commandName)local veh = getPedOccupiedVehicle(thePlayer) local dbid = getElementData(veh, \"dbid\")if (exports.global:isPlayerSuperAdmin(thePlayer)) thenif (dbid < 2) or (exports.global:isPlayerSuperAdmin(thePlayer)) then if not (isPedInVehicle(thePlayer)) then outputChatBox(\"Nem ülsz járműben!\", thePlayer, 0, 0, 0, true) else if (dbid > 2) then mysql:query_free(\"DELETE FROM vehicles WHERE id=\'\" .. mysql:escape_string(dbid) .. \"\'\") call( getResourceFromName( \"item-system\" ), \"deleteAll\", 3, dbid ) call( getResourceFromName( \"item-system\" ), \"clearItems\", veh ) exports.logs:logMessage(\"[DELVEH] \" .. getPlayerName( thePlayer ) .. \" torolve lett az #\" .. dbid .. \" es idju jarmu.\", 9) end destroyElement(veh) endelse outputChatBox(\"Nincs megfelelõ jogosultságod.\", thePlayer, 0, 0, 0, true) returnendendendaddCommandHandler(\"delthisveh\", deleteThisVehicle, false, false)addCommandHandler(\"delthis\", deleteThisVehicle, false, false)