Jump to content

Dobrodosli


CapY

Recommended Posts

  • 3 months later...
g_Me = getLocalPlayer() 
  
  
addCommandHandler ( "teleport", 
      function (cmd, x, y, z, r) 
          local px, py, pz = getElementPosition(g_Me) 
          local pr = getPedRotation(g_Me) 
                if not x or x == '-' or not tonumber(x) then 
                  x = px 
                end 
                if not y or y == '-' or not tonumber(y) then 
                  y = py 
                end 
                if not z or z == '-' or not tonumber(z) then 
                  z = pz 
                end 
    setPlayerPosition(tonumber(x), tonumber(y), tonumber(z)) 
end 

Fr_client.lua

Link to comment
  • 2 months later...
  • 2 months later...

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...