Jump to content

Player animations server side


IIYAMA

Recommended Posts

  • Moderators
Posted

How can I check if a player doing an animation. With server side, without triggering, because I need to know it at that moment.

-- client

https://wiki.multitheftauto.com/wiki/GetPedAnimation

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

ok, to bad.

thanks for the replies.

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

 

  Useful functions  3x 

  Tutorials  4x 

 

Posted

Maybe you can make a function and set a data using the setElementData function and if getElementData then get this function results and when you need to use it just check for the data .

  

  • Moderators
Posted

Yes possible I was also thinking about that, but I don't want to damage my very stable data management of my gamemode.

It hurts me every time when elementdata is a answer on a question while designing a lagg free gamemode, you know what I mean?

I have seen what elementdata did to some servers and I don't get happy about it.

Like as sample the server mini missions, I have no idea how much they use it, but I get the feeling that it is a lot.

Teleporting players all the time. -_-"

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

 

  Useful functions  3x 

  Tutorials  4x 

 

Posted

Don't use element data for this. Trigger the event instead to avoid the exponential growth of bandwidth usage as player count increases.

-

Posted

Maybe they have a problem or errors with the data, but if you use it properly there is no problem as far as i know and am using a data with my game mode and i use the data in all my resources and every thing fine but maybe this function make some lag -.- any way it's your option .

  

Posted

Just trigger it.

There's no need for element data..

IDK what you are trying to make.

[maybe we can request getPedAnimation on server side]

Sometimes I dream about cheese

  • Moderators
Posted

It is more that I already created some stuff.

- Gamemode, anti control binding, animations.

- Anti lagg, server damage and controlling player sync's

- Vehicle weapons.

But they can conflict each other and now I try to minimize that.

Problem solved by exporting animation progress from script to script.

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...