Jump to content

Saml1er

Retired Staff
  • Posts

    1,058
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Saml1er

  1. where are you calling startingAnimations function? Also, can you show how globalLoadedIfps is defined?
  2. show the full code. Can't help you like this.
  3. Good idea. This is actually a much better and simple solution. I'll update the wiki page.
  4. Yeah, check the ifp_demo resource which has animations synchronized.
  5. Discord: saml1er#8752 Okay, show me the recording then.
  6. Can you name one animation that is not working? Is it a partial animation? It'll be better if you provide me with a basic resource so I can reproduce the problem.
  7. Which animation doesn't work for peds? Is it idle animation?
  8. @JoeGamer You didn't carefully read what I said. You can't upload images to this forum, you have to upload them to external server, for instance, IMGUR.
  9. The process is trying to inject a DLL into MTA, which MTA won't allow. You cannot use this software, look for an alternative.
  10. You can't upload images here. Upload them to imgur.com and paste the link here. Also, have you tried downloading the latest MTA build from mtasa.com?
  11. If your MTA 1.5.5 build version is beyond r12195, then you can access that function. @Hani2001that's not a ped object. It will not work. Current IFP animations only work for ped (skinned) objects.
  12. can you post the PHP equivalent code in OOP? I can show you how you can convert it to Lua. @sanyisasha
  13. You can use: https://raw.githubusercontent.com/LuaDist/classlib/master/unclasslib.lua The usage is pretty simple. In this example, NamedAccount class inherits methods from Account class, it works because it supports multiple inheritance. If you don't want to inherit from other classes ,you should call class(). Account = class() function Account:__init(initial) -- constructor self.balance = initial or 0 end function Account:deposit(amount) self.balance = self.balance + amount end function Account:getBalance() return self.balance end myAccount = Account(10.00) NamedAccount = class(Account) function NamedAccount:__init(name, initial) self[Account]:__init(initial) self.name = name or 'anonymous' end function NamedAccount:getName() return self.name end myNamedAccount = NamedAccount('John', 10.00) myNamedAccount:deposit(60) outputChatBox ("Balance: "..tostring ( myNamedAccount:getBalance() ).." | Name: "..myNamedAccount:getName())
  14. Yes, the walking animation is played first. This is how GTA:SA works. However, you can replace the walking animation with the custom run_armed .
  15. can you try running the resource on any other server? it works fine for me. Something on your server might be modifying animations.
  16. Again, is that weapon™ M4? my ped is moving with the same speed as yours that you showed in the video. So the animation plays for a second or two and then it stops? or it never plays? I saw in the video that you were able to move in the same way I was.
  17. Good to know. I didn't do anything special, you can check the code. The reason it didn't work for you because you probably did something wrong.
  18. Then which animation do you want to play from the custom ped.ifp when you press space? Currently, run_armed will be played when you move with a weapon.
  19. Okay. Do not set any walking styles. Just start this resource and move with a weapon: https://drive.google.com/file/d/1uvGey2YBxPPGfq2nC-0OSXJImrLrRO47/view?usp=sharing
  20. Let's break it down: Forget walking styles, stats, and everything else. You just want to play the weapon animation when you sprint with weapons like M4 as shown in the video, right?
  21. Did you restart the resource after fixing the problem? Check VIP group within acl in admin panel, see if your account name is there. If it still doesn't work, then copy-paste your acl.xml here.
  22. I made a mistake: function isPlayerInGroup (player, group) local playerAccount = getPlayerAccount ( thePlayer ) TO function isPlayerInGroup (player, group) local playerAccount = getPlayerAccount ( player )
×
×
  • Create New...