Jump to content

Slow Slide Problem


orel56000

Recommended Posts

Posted
1 minute ago, Khadeer143 said:

open admin panel(p),go to tab server /look for fps limit make it 70 -80 your choice and press set now it  done

You meant for players fps? I thought you meant for server fps...

7079170904.png

Posted
1 minute ago, Khadeer143 said:

both r same lol it does not mean from acl or p panel xd!

it is not the same... when I look at the server fps its shows 170 (the black window) and the player fps is 55 cause its causing screen tires when its above

anyway its not what I wanted. I wanted to remove the delay when I'm sliding...

7079170904.png

  • Moderators
Posted

Samp sliding looks like a :halfrobot:.

 

It is probably something build in to improve the syncs.

Maybe it is included in a glitch: (not sure)

https://wiki.multitheftauto.com/wiki/SetGlitchEnabled

 

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   ?

 

  Useful functions  3x 

  Tutorials  4x 

 

  • Moderators
Posted (edited)

What about setting the player his position when switching over to another direction?

Edited by IIYAMA

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   ?

 

  Useful functions  3x 

  Tutorials  4x 

 

Posted
2 minutes ago, IIYAMA said:

What about setting the player his position when switching over to another direction?

I don't know how to do that, can you help me with that?

7079170904.png

  • Moderators
Posted
local oldDirection
addEventHandler("onClientPreRender", root,
function ()
	local direction = getControlState ("left") and "left" or getControlState ("right") and "right"
	if direction then
		if oldDirection and direction ~= oldDirection then
			local x,y,z = getElementPosition(localPlayer)
			setElementPosition(localPlayer, x, y, z)
		end
		oldDirection = direction
	else
		oldDirection = nil
	end
end)

 

Quick and untested prototype. As well as my last one, iterate it yourself.

 

 

 

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   ?

 

  Useful functions  3x 

  Tutorials  4x 

 

Posted
3 minutes ago, IIYAMA said:

local oldDirection
addEventHandler("onClientPreRender", root,
function ()
	local direction = getControlState ("left") and "left" or getControlState ("right") and "right"
	if direction then
		if oldDirection and direction ~= oldDirection then
			local x,y,z = getElementPosition(localPlayer)
			setElementPosition(localPlayer, x, y, z)
		end
		oldDirection = direction
	else
		oldDirection = nil
	end
end)

 

Quick and untested prototype. As well as my last one, iterate it yourself.

 

 

 

Not working, just reset my animation when I move left or right (to animation that not aiming)...

7079170904.png

  • Moderators
Posted

You can also try instead of setting the position, freeze the position temporary(by 1 or 2 frames).

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   ?

 

  Useful functions  3x 

  Tutorials  4x 

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...