Jump to content

Spawn to Interior Without changing Ped


Zuher Laith

Recommended Posts

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 ?

Link to comment
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?

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...