bebo1king Posted October 18, 2015 Posted October 18, 2015 i am trying to use setElementVelocity my Question is if i use this code for makeing a skin run faster than other does it may works ? Skype :bebo.ahmad34 My channel on youtupe : https://www.youtube.com/channel/UCOXfmMopyyBL5NBeO0RS04g/videos
Ab-47 Posted October 18, 2015 Posted October 18, 2015 Should do, although I've never tried. Use a loop to get all the players, add a check to see which players have that specific character ID then add the statement which sets the players velocity in addition to the current velocity using getElementVelocity. You will have to somehow get the local players velocity and that not being in the loop, cause if you have more than 1 player with the matching character ID, the data won't sync to a singular element yet more than 1 persons data would be jumbled up and you'll be running depending on yours and his velocity state. Hope I could help And now Aurora is back again, pm for more info. Ex. Lead dev & L6 Staff at AUR, NGC, MTA RP & SAA. Ex. Developer at Community of Social Gamers - CSG Ex Founder of International Gaming Community - IGC and Union of Individual Players- UIP Ab-47
Moderators IIYAMA Posted October 18, 2015 Moderators Posted October 18, 2015 It doesn't. When the ped is on the ground it gets limited by the GTA default running/walking speed. When you overuse setElementVelocity you will get yourself flying. But setElementVelocity can increase the acceleration speed of a ped t/m the speed limit. Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Ab-47 Posted October 18, 2015 Posted October 18, 2015 Why not use 'setGameSpeed' client sided according to that singular ped? And now Aurora is back again, pm for more info. Ex. Lead dev & L6 Staff at AUR, NGC, MTA RP & SAA. Ex. Developer at Community of Social Gamers - CSG Ex Founder of International Gaming Community - IGC and Union of Individual Players- UIP Ab-47
bebo1king Posted October 18, 2015 Author Posted October 18, 2015 Why not use 'setGameSpeed' client sided according to that singular ped? Good idea bro , thx + thank you all i am beginner Skype :bebo.ahmad34 My channel on youtupe : https://www.youtube.com/channel/UCOXfmMopyyBL5NBeO0RS04g/videos
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