* Client Side :
addEventHandler('onClientGUIClick',root,
function ( )
if ( source == GUIEditor.button[1] ) then
triggerServerEvent ( 'dd',localPlayer )
end
end
)
* Server Side :
addEvent ( 'dd', true )
addEventHandler ( 'dd', root,
function ( player )
for i, v in ipairs ( getElementsByType ( 'vehicle' ) ) do
if isObjectInACLGroup ( 'user.' .. getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( 'Console' ) ) then
blowVehicle ( v , false )
outputChatBox ( ' !! لم تم تفجير سيارتك لانك كونسل', player, 255, 0, 0 )
else
blowVehicle ( v , true )
outputChatBox ( 'تم تفجير سيارتك لانك لست كونسل', player, 255, 0, 0 )
end
end
end
)