Jump to content

Dude'

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by Dude'

  1. Thanks FaDy-Jo for your time Great TUT
  2. Dude'

    A little problem

    I thought so, tried and still nothing happens
  3. still the same addEventHandler ( "onPlayerQuit", root, function () local name = getPlayerName ( source ) if hitBlip and isElement ( hitBlip ) then destroyElement ( hitBlip ) outputChatBox ( name .. " has quit hit", root, 255,235,0 ) end end) i dont want to make it with tables, i want to make it with setElementData
  4. the problem is not with saving data the problem is with the onquit function and client function so can u please fix them ?
  5. but its working and saving elements
  6. local playername = getPlayerName ( thePlayer ) local hitBlip = createBlipAttachedTo ( thePlayer, 26 ) setElementData ( thePlayer, "hitBlip", hitBlip )
  7. 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.
×
×
  • Create New...