ThePope Posted January 14, 2010 Share Posted January 14, 2010 Hello all, I was wondering if there is an event for when a player moves. (regardless is it is train, car, on foot whatever is possible). I want to use this to create a "label" at the bottom of the screen to display the current cooridinates. (specific, like: X = -2175.034896412 Y = 656.01654798 Z = 13 or something like that) Can anyone point me in the right direction or are there any pre-existing resources available for this? I have been searching all morning but there doesn't seem to exist anyhing that does this kind of thing. Thanks in advance! Link to comment
ThePope Posted January 14, 2010 Author Share Posted January 14, 2010 Hello all, I was wondering if there is an event for when a player moves. (regardless is it is train, car, on foot whatever is possible). I want to use this to create a "label" at the bottom of the screen to display the current cooridinates. (specific, like: X = -2175.034896412 Y = 656.01654798 Z = 13 or something like that) Can anyone point me in the right direction or are there any pre-existing resources available for this? I have been searching all morning but there doesn't seem to exist anyhing that does this kind of thing. Thanks in advance! Link to comment
subenji99 Posted January 14, 2010 Share Posted January 14, 2010 https://wiki.multitheftauto.com/wiki/OnClientRender It's not "whenever they move", but rather "every frame". Besides, if you decide to use dxDrawText for this (and I recommend it), you need to use it with onClientRender anyway. Use https://wiki.multitheftauto.com/wiki/GetElementPosition to get the coordinate data. Link to comment
subenji99 Posted January 14, 2010 Share Posted January 14, 2010 https://wiki.multitheftauto.com/wiki/OnClientRender It's not "whenever they move", but rather "every frame". Besides, if you decide to use dxDrawText for this (and I recommend it), you need to use it with onClientRender anyway. Use https://wiki.multitheftauto.com/wiki/GetElementPosition to get the coordinate data. Link to comment
ThePope Posted January 14, 2010 Author Share Posted January 14, 2010 thanks for the fast answer, I'll look into it. It seems to be the function that I need for this. Link to comment
ThePope Posted January 14, 2010 Author Share Posted January 14, 2010 thanks for the fast answer, I'll look into it. It seems to be the function that I need for this. Link to comment
50p Posted January 14, 2010 Share Posted January 14, 2010 https://community.multitheftauto.com/index.php?p= ... ils&id=124 Link to comment
50p Posted January 14, 2010 Share Posted January 14, 2010 https://community.multitheftauto.com/index.php?p= ... ils&id=124 Link to comment
ThePope Posted January 15, 2010 Author Share Posted January 15, 2010 thnx 50p, i also took an example from your script to extend the one I already created ^^ Link to comment
ThePope Posted January 15, 2010 Author Share Posted January 15, 2010 thnx 50p, i also took an example from your script to extend the one I already created ^^ 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