If Will Try this ;
client ;
VehiclesID = { [470]=true,[422]=true,[437]=true,[433]=true,[497]=true,[478]=true,[468]=true }
local allow = nil
addEventHandler("onClientResourceStart",resourceRoot,
function ( )
setTimer(
function ( )
if allow then return end
local vehicle = getPedOccupiedVehicle(localPlayer)
if not vehicle then return end
if isElementInWater ( vehicle ) then
if ( VehiclesID[getElementModel(vehicle)] ) then
setTimer(
function( )
allow = true
triggerServerEvent("Data",localPlayer,vehicle)
end,1000,1)
end
end
end,250,0)
end
)
addEvent("allow",true)
addEventHandler("allow",root,
function ()
allow = nil
end
)
server ;
addEvent("Data",true)
addEventHandler("Data",root,
function ( vehicle )
if not isPedInVehicle(source) then return end
blowVehicle( vehicle )
if isObjectInACLGroup ("user.".. getAccountName ( getPlayerAccount ( source ) ), aclGetGroup ( "Admin" ) ) then
outputChatBox("* The Player ; "..getPlayerName(source).." Vehicle Has Been Blowed!",getRootElement(),0,255,255,true)
end
triggerClientEvent(source,"allow",source)
end
)
And tell me what happened .