Zuher Laith Posted January 18, 2016 Posted January 18, 2016 Hi Everyone I Searched Wikipedia for spawnPlayer Function to Teleport Into Another Place .. Like "Ammu Nation 1" What i want is to select the Interior Without changing ped (if i typed 0, it Change's to Cj Ped) Here's my Code: spawnPlayer(hitElement,286.9273,-39.7898,1001.5156,0,0,1) This Move's the Player to Ammu Nation 1 Interior but It Change's the Ped every time, i don't want to change the ped How can i do that ?
Zuher Laith Posted January 19, 2016 Author Posted January 19, 2016 dont use spawnPlayer use setElementInterior I want to make it On MarkerHit Does it Require a Server Side? Or only a Client Side? This is my Client Side: marker = createMarker(1368.4604492,-1279.7705078,12.6,"cylinder",1.5,246,255,0,255,getRootElement()) function teleport (hitElement) setElementInterior ( localPlayer, 1, 286.9273,-39.7898,1001.5156 ) end addEventHandler("onMarkerHit",marker,teleport) and if it's request a server side .. how may i do that?
Zuher Laith Posted January 19, 2016 Author Posted January 19, 2016 Never mind, i forgot to change "hitElement" to "localPlayer" but i have one question , i'am using an client side the teleport doesn't require a server side right?
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