Hell-Mate
Members-
Posts
198 -
Joined
-
Last visited
Everything posted by Hell-Mate
-
Tested and nothings Elements not getting destroyed
-
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
-
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 )
-
-- 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)
-
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)
-
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 ?
-
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.
-
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
-
Really an EPIC script and hard work from you, good job bro
-
Where is the download link ?
-
Good job, keep it up brah
-
Really an amazing idea, keep it up guys
-
Images not working .. re-upload images
-
[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
-
Can you please post the errors which the console output ? just to know which line we should fix
-
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 ?
-
oh sorry my bad, worked like a charm, Thanks bro
-
Well, you can use setPedAimTarget --to get the target and setPedControlState --to shoot the target
-
Problem Solved, LOCK
-
Error : Server triggered clientside event mechanic:display but event is not added clientside
