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 ? MTA:SA scripts/gamemodes/misc: http://www.mtasa.xn.pl
Anderl Posted January 27, 2013 Posted January 27, 2013 You should use negative numbers to look infinitely. "[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007
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