Michcio Posted January 27, 2013 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)
MatXpl Posted January 27, 2013 Posted January 27, 2013 meybe try: setPedLookAt (getLocalPlayer(), worldx, worldy, worldz, 1) any debug ?
Anderl Posted January 27, 2013 Posted January 27, 2013 You should use negative numbers to look infinitely.
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