El Colorado

Just a question

Recommended Posts

Hello , I have a question . How to get this coordinates in mta san andreas ? - mx, my, mz, tarx, tary, tarz , rot

 

Share this post


Link to post

What do you mean? An element's position? Why do you have target positions?

Btw, to get the current position of an element, use getElementPosition, for the rotation, getElementRotation.

Edited by NeXuS™
  • Thanks 1

Share this post


Link to post

Im trying to make when player dies he will spawn in El quabadros hospital , so I need this -  mx, my, mz, tarx, tary, tarz, x, y, z , and I dont know what mx my mz tarx tary tarz means .... how to get them. This is coordinates or what ?

Share this post


Link to post

Where does it say that you have to use those args? Use the spawnPlayer function.

Share this post


Link to post

this is example - 

local hospitalTable = {}
local hospitals = {
    -- mx, my, mz, tarx, tary, tarz, x, y, z, rot, name
    [1] = {1218, -1322, 15, 1217, -1322, 15, 1173, -1323, 15, 270, "All Saints Hospital"}, -- All Saints

Share this post


Link to post

I suppose mx, my, mz, tarx, tary, tarz are the camera matrix, and then xyz is the spawn position.

Share this post


Link to post

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.