-
Posts
862 -
Joined
-
Last visited
Everything posted by iMr.3a[Z]eF
-
What's your version?
-
no I just edited the team name and the position client.lua local theMarker = createMarker ( 2289.99, 581.85, 10.2, 'cylinder', 2.0, 255, 0, 0, 150 ) addEventHandler('onClientMarkerHit',theMarker, function ( hit ) if hit = localPlayer then if getPlayerTeam ( hit ) and not isPedInVehicle ( hit ) then if getTeamName ( getPlayerTeam ( hit ) ) == 'Team1' then setElementPosition( hit , 2250.1647949219, 586.35363769531, 66562461853 ) outputChatBox ( 'SET POS DONE!' ) end end end end,false ) The team name didnt changed -.-
-
answer my question did you added some codes in client.lua? because maybe that why it didnt set position
-
isa did you added some codes in client.lua?
-
You just edited it. So, what's the problem Fahad i think the problem is from him.
-
he said its client edit the meta to this
-
Try iFahad's code If didnt works too capture the screen of the tap Panel that i sure you are in the team.
-
So what's the debug says?
-
dont forget to change "yourTeam" to the team you want and dont forget to be in the team
-
No more post about this problem again . I really don't know about the others But this is happens to me every time.
-
Make a cylinder marker then tell me what is a bug
-
the marker have a bug try this: -- #! Server Side Marker = createMarker ( -2596.625, 579.358, 15.626 - 1, 'cylinder', 2.0, 255, 0, 0, 150 ) function setPosition(player) local PlayerTeam = getPlayerTeam ( player ) local TeamN = getTeamFromName ( "TeamName" ) if isElementWithinMarker ( player, Marker ) then if PlayerTeam == TeamN then setElementPosition ( player, 2287.78320, 607.99255, 10.82031 ) end end end addEventHandler("onMarkerHit",Marker, setPosition) Would you like to tell us the bug? the bug is in the cylinder i dont mean Castillo's code is wrong i say the marker have a bug in MTA all the bug is when you put position for the marker and Cylinder then you'll get the marker is up of the ground so i added like this Marker = createMarker ( -2596.625, 579.358, 15.626 - 1, 'cylinder', 2.0, 255, 0, 0, 150 ) Minus one is mean in this code that the marker will be a little under. so it will attach with the ground
-
the marker have a bug try this: -- #! Server Side Marker = createMarker ( -2596.625, 579.358, 15.626 - 1, 'cylinder', 2.0, 255, 0, 0, 150 ) function setPosition(player) local PlayerTeam = getPlayerTeam ( player ) local TeamN = getTeamFromName ( "TeamName" ) if isElementWithinMarker ( player, Marker ) then if PlayerTeam == TeamN then setElementPosition ( player, 2287.78320, 607.99255, 10.82031 ) end end end addEventHandler("onMarkerHit",Marker, setPosition)
-
hahaha i forget it why you didnt told me the bug local marker = createMarker ( x, y, z, "cylinder", 1.5, 255, 0, 0, 170 ) addEventHandler( "onMarkerHit", marker, function ( player ) if getElementType(player) == "player" then local PlayerTeam = getPlayerTeam ( player ) local Team = getTeamFromName ( "staff" ) if playerTeam == Team then outputChatBox ( "* welcome Staff ", player, 255, 0, 0) else killPed(player) end end end )
-
do you want to set the vehicle position next to the player
-
if you mean you want to color the nametag setPlayerNametagColor
-
i'm Really cunfused i can't help you with maps sorry i hope anyone can help you.
-
In other words, the whole codes are 100% errors
-
Also you missed end for the function "moveToDM" and you put two events for the function "moveToDM2" and you put end under the event "onClientGuiClick"
-
Replace this setElementData (player,"gamemode","[gamemodes]/[race]/race", true) with this setElementData (localPlayer,"gamemode","[gamemodes]/[race]/race", true)
-
no, i asked about your gamemod with the team and all codes
-
post the gamemod here and use LUA syntax. use this [lua]-- your code here[*/lua] Delelte the * and write the code between the parentheses.
-
write the gamemod and use LUA syntax box that i read carefully without mistakes
-
write it in F8 debugscript 3