kuwalda Posted June 27, 2014 Share Posted June 27, 2014 I have strange problem. I have marker that represents point to enter garage. When player enter these garage they see each other and stack up, so basiclly players can see each other (car/player model). But when player exit this garage, this player is "invisible". Everyone can see their nametags and HP, but not their model, nether their car. This player can hurt everyone else, but only this others can see is their nametag. Can someone please help me? My code: --this gets player into garage (code shortened) addEventHandler( "onMarkerHit", createMarker ( 220.9228515625, 17, -4, "cylinder", 7, 63, 165, 14, 165 ), function(thePlayer) if getPedOccupiedVehicle ( thePlayer ) then setElementInterior(thePlayer, 18, 1292.6689453125 ,-54.3330078125 ,1002.2244873047 ) setElementInterior(getPedOccupiedVehicle(thePlayer), 18, 1292.6689453125 ,-54.3330078125 ,1002.2244873047 ) triggerClientEvent(thePlayer, "requestShowPlayerGarageGUI", thePlayer) end end) --and this gets him out addEventHandler('onClientGUIClick', getRootElement(), function(button, state, absoluteX, absoluteY) if(source == PamestGarazuJa)then if(button == 'left') then setElementInterior(localPlayer, 0, 224.0419921875, 26.998046875, 2.298052072525) setElementInterior(getPedOccupiedVehicle(localPlayer), 0, 224.0419921875, 26.998046875, 2.298052072525) setElementRotation(getPedOccupiedVehicle(localPlayer), 359.96508789063 ,359.9765625 ,317.404296875) setCameraTarget( localPlayer, localPlayer ) end end end) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now