Michcio Posted January 27, 2013 Share Posted January 27, 2013 It's not work. function onClientLookAtRender() if isCursorShowing() then local screenx, screeny, worldx, worldy, worldz = getCursorPosition() setPedLookAt (getLocalPlayer(), worldx, worldy, worldz, 0) end end addEventHandler ("onClientRender", root, onClientLookAtRender) Link to comment
MatXpl Posted January 27, 2013 Share Posted January 27, 2013 meybe try: setPedLookAt (getLocalPlayer(), worldx, worldy, worldz, 1) any debug ? Link to comment
Anderl Posted January 27, 2013 Share Posted January 27, 2013 You should use negative numbers to look infinitely. 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