r0bin Posted December 14, 2009 Share Posted December 14, 2009 Is there a way to find out a player's rotation server-side? I've been looking for a function like that for my script where someone can spawn objects by pressing keys. The object spawning works very well, but I want to make the objects rotate in the direction the player is facing. I'm stuck at getting the player's coördinates. I've searched the wiki but I didn't find anything I could use. Thanks in advance. Link to comment
Dark Dragon Posted December 14, 2009 Share Posted December 14, 2009 https://wiki.multitheftauto.com/wiki/GetPedRotation will work server side, if you need the rotation of a vehicle theres no way but triggering an event, getting the rotation and triggering an event to continue the function Link to comment
r0bin Posted December 14, 2009 Author Share Posted December 14, 2009 Thanks a lot! Does getPedRotation() work when a player is inside a vehicle, or do I have to use getVehicleRotation()? Nevermind, it's in the example on the wiki. Sorry. 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