Lloyd Logan Posted January 31, 2013 Posted January 31, 2013 Why does setElementPosition keep setting the player like this? The player is consistantly stuck! http://img844.imageshack.us/img844/2/forksb.png Thanks function consoleSetPlayerPosition ( commandName, posX, posY, posZ ) setElementPosition ( getLocalPlayer(), posX, posY, posZ ) end addCommandHandler ( "setpos", consoleSetPlayerPosition ) If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE SCOTLAND, my hometown, and the Home of GTA!
Blaawee Posted January 31, 2013 Posted January 31, 2013 try to fade the camera plus adding some random number like this function consoleSetPlayerPosition ( commandName, posX, posY, posZ ) setElementPosition ( getLocalPlayer(), posX + math.random( 0.8, 1.2 ), posY + math.random( 0.8, 1.2 ), posZ + math.random( 0.8, 1.2 ) ) end addCommandHandler ( "setpos", consoleSetPlayerPosition )
Lloyd Logan Posted January 31, 2013 Author Posted January 31, 2013 I tried that, the camera is now jamming in the players body? If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE SCOTLAND, my hometown, and the Home of GTA!
iPrestege Posted January 31, 2013 Posted January 31, 2013 I tried that, the camera is now jamming in the players body? What did you do? Post your script here .
Lloyd Logan Posted January 31, 2013 Author Posted January 31, 2013 I tried that, the camera is now jamming in the players body? What did you do? Post your script here . The script was the one in the OP, but nevermind, Freeroam was messing it up! If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE SCOTLAND, my hometown, and the Home of GTA!
iPrestege Posted January 31, 2013 Posted January 31, 2013 Try this : function consoleSetPlayerPosition ( commandName, posX, posY, posZ) localPlayer = getLocalPlayer() if localPlayer then fadeCamera(false, 1) setTimer(fadeCamera, 1000, 1, true) setTimer(setElementPosition, 1500, 1, localPlayer, posX, posY, posZ) end end addCommandHandler ( "setpos", consoleSetPlayerPosition ) And , Tell me the result .
Blaawee Posted January 31, 2013 Posted January 31, 2013 actually the freeroam already have that's function . this is the freeroam commands : Player: ss / setskin [id] wp / give [weaponid] [ammo] ac / addclothes [type] [texture] [model] rc / removeclothes [type] ap / alpha [value] (Transparency) jp / jetpack (or press J) setstyle [fightingstyle] anim [lib] [name] Vehicles: cv / createvehicle [vehicleid] au / addupgrade [upgradeid] ru / removeupgrade [upgradeid] pj / paintjob [paintjobid] rp / repair cl / color [colorid] f / flip [b][u]Tools: wt / warpto [playername] sp / setpos [x] [y] [z] [rot] gp / getpos[/u][/b] Environment: st / settime [hours] [minutes] sw / setweather [weatherid] speed / setgamespeed [value] grav / setgravity [value]
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