Saml1er

MTA Contributors
  • Content count

    1,074
  • Joined

  • Last visited

  • Days Won

    1

Saml1er last won the day on May 7

Saml1er had the most liked content!

Community Reputation

44 Good

About Saml1er

  • Rank
    MTA Contributor

Details

  • Gang
    CJ

Recent Profile Visitors

2,774 profile views
  1. Saml1er

    custom animations

    "ifpIndex" is the index of the ifp file you want to load from globalLoadedIfps table, the table contains IFP data, like file path, new block name, the animations of the ifp file, etc.. Instead of sending an entire table via triggerServerEvent or triggerClientEvent which will use more internet bandwidth, we simply send an index of the required table for ifp which will be much faster. Also, can you please login as admin and execute /debugscript 3 on your server? It will show you errors within code on screen if there are any. Also, I just realized that source is also not defined here: function startingAnimations() ReplacePedBlockAnimations ( source, 7 ) -- Where is source defined? It is not a predefined variable. end Correction: function startingAnimations() ReplacePedBlockAnimations ( localPlayer, 7 ) end localPlayer is a predefined variable on client side. It will always be valid. localPlayer is YOU. More about predefined variables: https://wiki.multitheftauto.com/wiki/Predefined_variables_list
  2. Saml1er

    custom animations

    Nope. You have only defined the function, you never call it. It's like you sit in a vehicle with no driver and you expect it to magically take you to your destination, that won't happen. You have to drive the vehicle, in the same way, you have to call this function. You call the function like this: startingAnimations() Ok, calling this function before the download will not work because the IFP has not loaded, so we'll use an event for it. Put this code snippet at the bottom of client.lua: addEventHandler("onClientResourceStart", resourceRoot, function() startingAnimations() -- call the function end )
  3. Saml1er

    custom animations

    Okay, I can see everything's right here. Now tell me where you are calling startingAnimations function? You have defined the function but you never call it anywhere within the code which means the code never executes.
  4. Saml1er

    custom animations

    No, I was talking to NmLa. I asked you a question but you didn't respond:
  5. Saml1er

    custom animations

    You can load any IFP file that was created for GTA VC and SA using: engineLoadIFP So yes, you can load the ifp file to MTA if you have it.
  6. Saml1er

    custom animations

    what?
  7. Saml1er

    custom animations

    where are you calling startingAnimations function? Also, can you show how globalLoadedIfps is defined?
  8. Saml1er

    custom animations

    show the full code. Can't help you like this.
  9. Saml1er

    Custom Animations Question

    Good idea. This is actually a much better and simple solution. I'll update the wiki page.
  10. Saml1er

    custom animations

    Yeah, check the ifp_demo resource which has animations synchronized.
  11. Saml1er

    Custom Animations Question

    probably yes.
  12. Saml1er

    engineReplaceAnimation for peds not working

    Discord: saml1er#8752 Okay, show me the recording then.
  13. Saml1er

    engineReplaceAnimation for peds not working

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

    engineReplaceAnimation for peds not working

    Which animation doesn't work for peds? Is it idle animation?
  15. Saml1er

    engineReplaceAnimation for peds not working

    Show your code.