iMr.3a[Z]eF Posted July 8, 2013 Posted July 8, 2013 I will test it now dont forget to change "yourTeam" to the team you want and dont forget to be in the team
isa_Khamdan Posted July 8, 2013 Author Posted July 8, 2013 Still not working , I know how to fit the Marker on the ground and that's not the problem. the problem is that when I enter the marker while I am in the selected team it don't change my position ( teleport me )
iMr.3a[Z]eF Posted July 8, 2013 Posted July 8, 2013 Still not working , I know how to fit the Marker on the ground and that's not the problem.the problem is that when I enter the marker while I am in the selected team it don't change my position ( teleport me ) So what's the debug says?
iPrestege Posted July 8, 2013 Posted July 8, 2013 local theMarker = createMarker ( -2596.625, 579.358, 15.626, '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 , 2287.78320,607.99255,10.82031 ) outputChatBox ( 'SET POS DONE!' ) end end end end,false ) Please make sure you're in team called 'Team1' Please! IT'S CLIENT SIDE.
isa_Khamdan Posted July 8, 2013 Author Posted July 8, 2013 nothings about this script just freeroam GUI errors lol
iPrestege Posted July 8, 2013 Posted July 8, 2013 Try my one and tell me it's client if doesn't work post meta file?
iMr.3a[Z]eF Posted July 8, 2013 Posted July 8, 2013 Try iFahad's code If didnt works too capture the screen of the tap Panel that i sure you are in the team.
isa_Khamdan Posted July 8, 2013 Author Posted July 8, 2013 local theMarker = createMarker ( -2596.625, 579.358, 15.626, '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 , 2287.78320,607.99255,10.82031 ) outputChatBox ( 'SET POS DONE!' ) end end end end,false ) Please make sure you're in team called 'Team1' Please! IT'S CLIENT SIDE. Testing now.
isa_Khamdan Posted July 8, 2013 Author Posted July 8, 2013 Try my one and tell me it's client if doesn't work post meta file?
iMr.3a[Z]eF Posted July 8, 2013 Posted July 8, 2013 You just edited it. So, what's the problem Fahad i think the problem is from him.
isa_Khamdan Posted July 8, 2013 Author Posted July 8, 2013 still not working , this time even the marker didn't shows up
iMr.3a[Z]eF Posted July 8, 2013 Posted July 8, 2013 (edited) answer my question did you added some codes in client.lua? because maybe that why it didnt set position Edited July 8, 2013 by Guest
isa_Khamdan Posted July 8, 2013 Author Posted July 8, 2013 answer my questiondid you added some codes in client.lua? 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 )
iMr.3a[Z]eF Posted July 8, 2013 Posted July 8, 2013 answer my questiondid you added some codes in client.lua? 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 -.-
isa_Khamdan Posted July 8, 2013 Author Posted July 8, 2013 I changed it before uploading it , forgot to change it before posting
iPrestege Posted July 8, 2013 Posted July 8, 2013 FUCK Sorry i forget something try : local theMarker = createMarker ( -2596.625, 579.358, 15.626, '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 , 2287.78320,607.99255,10.82031 ) outputChatBox ( 'SET POS DONE!' ) end end end end,false )
iMr.3a[Z]eF Posted July 8, 2013 Posted July 8, 2013 I changed it before uploading it , forgot to change it before posting What's your version?
isa_Khamdan Posted July 8, 2013 Author Posted July 8, 2013 Sorry i forget something try : local theMarker = createMarker ( -2596.625, 579.358, 15.626, '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 , 2287.78320,607.99255,10.82031 ) outputChatBox ( 'SET POS DONE!' ) end end end end,false ) Testing now.
isa_Khamdan Posted July 8, 2013 Author Posted July 8, 2013 (edited) Thanks to everyone who helped me , It's working well now and thanks to IFahad <3 Edited July 8, 2013 by Guest
iMr.3a[Z]eF Posted July 8, 2013 Posted July 8, 2013 Thanks a lot everyone who helped me , It's working well now and thanks to IFahad <3 any time
Recommended Posts