i saw fady's scripts which is hit script and i added onClientPlayerQuit to destroy the player blip when he quit but plz fix the script.
this is server side
function onquit ()
local name = getPlayerName ( source )
if hitBlip and isElement( hitBlip ) then
destroyElement ( hitBlip )
outputChatBox ( name .. " has quit hit", root, 255,235,0 )
end
end
addEvent ( "onQuit", true )
addEventHandler ( "onQuit", getRootElement(), onquit )
this is client side
function onQuitGame ()
triggerServerEvent ( "onQuit", localPlayer )
end
addEventHandler( "onClientPlayerQuit", getRootElement(), onQuitGame )
please anyone help me.