Ok, i have this script, but i want him to work with specific vehicle Id's, how this line would work to say to the script that i want it works only with the specified cars?
function AdminCarRemoval ( button, state, player )
if ( button == "left" and state == "down" ) then
if ( isElement(source) ) and ( getElementType(source) == "vehicle" ) then
if ( isGuestAccount(getPlayerAccount(player)) ) then return end
if ( aclGetGroup ( "Admin" ) ) and ( isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(player)), aclGetGroup ( "Admin" ) ) ) then
destroyElement (source)
outputChatBox('Successfully destroyed the vehicle.',player,255,255,0,true)
end
end
end
end
addEventHandler( "onElementClicked", getRootElement( ), AdminCarRemoval )