Jump to content

Hell-Mate

Members
  • Posts

    198
  • Joined

  • Last visited

Everything posted by Hell-Mate

  1. Tested and nothings Elements not getting destroyed
  2. Same. i just have another job that have this > setPlayerTeam ( source, getTeamFromName ( "Civilian" ) ) i got the job and my team has been civilian and elements didn't destroy
  3. i just copied your code exactly, and nothing _setPlayerTeam = setPlayerTeam addEvent( "onPlayerChangeTeam", true ) function setPlayerTeam ( thePlayer, theTeam ) triggerEvent ( "onPlayerChangeTeam", root, thePlayer, theTeam ) return _setPlayerTeam ( thePlayer, theTeam ) end addEventHandler ( "onPlayerChangeTeam", root, function ( player, team ) local teamName = getTeamName ( team ) if teamName ~= "Criminal" then destroyElement ( robhouseMarker ) destroyElement ( robhouseBlip ) end end )
  4. -- Tested but not working i just changed my team from admin panel to another team but Element not destroyed .. _setPlayerTeam = setPlayerTeam addEvent( "onPlayerChangeTeam", true ) function setPlayerTeam ( thePlayer, theTeam ) triggerEvent ( "onPlayerChangeTeam", root, thePlayer, theTeam ) return _setPlayerTeam ( thePlayer, theTeam ) end addEventHandler ( "onPlayerChangeTeam", root, function ( player, team ) local playerTeam = getTeamName ( team ) if playerTeam ~= "Criminal" then destroyElement ( robhouseMarker ) destroyElement ( robhouseBlip ) end end)
  5. hmm so this will be how it looks ? addEventHandler ( "onPlayerChangeTeam", root, function ( player, team ) local playerTeam = getPlayerTeam ( source ) if playerTeam ~= "Criminal" then destroyElement ( robhouseMarker ) destroyElement ( robhouseBlip ) end end)
  6. well, what about the first code ? >> _setPlayerTeam = setPlayerTeam addEvent( "onPlayerChangeTeam", true ) function setPlayerTeam ( thePlayer, theTeam ) triggerEvent ( "onPlayerChangeTeam", root, thePlayer, theTeam ) return _setPlayerTeam ( thePlayer, theTeam ) end i really dont understand this setPlayerTeam thingy ?? Can u explain ?
  7. What spam -.- ?
  8. WhoAmI, do u understand what i mean ? i mean if a Player in Criminal Team and changed his Team to any other team for example like civilian, if so then destroyElement ( Element ) that what i mean.
  9. Dude, you know what ? you just saved over 30k ppl time ( ppl who downloaded the res ), its really a time save resource, i always use your Editor to make GUI. thanks dude
  10. Really an EPIC script and hard work from you, good job bro
  11. Where is the download link ?
  12. Good job, keep it up brah
  13. Really an amazing idea, keep it up guys
  14. Images not working .. re-upload images
  15. [quote name=..&G:..]Ok, thanks. And now, how do I replace the paintjobs of a car? Cause in the pack I have elegy.txd, elegy1.txd, elegy2.txd etc.. And they are paintjobs use this > setVehiclePaintJob
  16. Hell-Mate

    Cars

    Can you please post the errors which the console output ? just to know which line we should fix
  17. Hey community, i need someone's help. i tried to find any event for when a player change his team but i failed. i made a robber job which create some markers and blips and i want to destroyElement of this Markers and Blips on Player team change i need any Event that can help. Thanks function removeblips () local playerTeam = getPlayerTeam ( source ) if playerTeam ~= "Criminal" then destroyElement ( robhouseMarker ) destroyElement ( robhouseBlip ) end end Which Event should i add ?
  18. oh sorry my bad, worked like a charm, Thanks bro
  19. Solved ..
  20. Solved ..
  21. Well, you can use setPedAimTarget --to get the target and setPedControlState --to shoot the target
  22. Solved ..
  23. Solved..
  24. Problem Solved, LOCK
  25. Error : Server triggered clientside event mechanic:display but event is not added clientside
×
×
  • Create New...