Jump to content


Retired Staff
  • Posts

  • Joined

  • Last visited

  • Days Won


Everything posted by Saml1er

  1. You were banned for sharing a leaked gamemode that contained backdoors. In fact, you were even threatening the server owner that you'll leak his server database and you were boasting about it on your discord. It's pretty clear that you knew what you were doing. Your ban is temporary, you'll have to wait for it to expire. Appeal denied.
  2. What is your MTA version? You can check it by writing "ver" in the F8 console. Can you check for recent crash dumps in DRIVE:\Program Files (x86)\MTA San Andreas 1.5\MTA\dumps\private? If you do find new crash dumps, then please upload them to https://upload.mtasa.com and paste the link here (only MTA staff can access it).
  3. if (objectMovingTick - getTickCount()) < gateCommandWaitInMs then I made a typo here. This should be: if (getTickCount() - objectMovingTick) < gateCommandWaitInMs then
  4. local gateCommandWaitInMs = 3000 -- 3000 milliseconds. You can increase or decrease this value to meet your requirements local objectMovingTick = getTickCount() + gateCommandWaitInMs -- we are adding this to tick, so we don't have to wait for 3 seconds in first use gateLSPD = false x, y, z = getElementPosition ( source ) if getDistanceBetweenPoints3D ( x, y, z, 1544.24707, -1631.90906, 13.38281 ) <= 2 then if (objectMovingTick - getTickCount()) < gateCommandWaitInMs then -- check if 3000 milliseconds have passed return end if gateLSPD == false then local rotX, rotY, rotZ = getElementRotation(shlagLSPD) moveObject ( shlagLSPD, 2000, 1544.6999511719, -1630.9000244141, 13.10000038147, 0, -80, 0 ) gateLSPD = true else local rotX, rotY, rotZ = getElementRotation(shlagLSPD) moveObject ( shlagLSPD, 2000, 1544.6999511719, -1630.9000244141, 13.10000038147, 0, 80, 0 ) gateLSPD = false end objectMovingTick = getTickCount() end You can use getTickCount to fix the problem.
  5. Nice work. We really need something like this.
  6. Upload your resource to mediafire or google drive and post the link here.
  7. Can you post the script where you create the objects? I'd like to test it.
  8. createObject function executes pretty quickly. I think you're talking about engine functions, like engineLoadDFF, *TXD, and *COL.
  9. So, you simply want the ability to shoot with a weapon when you are close to a wall or when a player is blocking you with his elbow? Currently, you can't do that. I can add this ability to: setGlitchEnabled Create a new issue on github and paste the link here.
  10. Open F8 > Write "ver" > Enter > copy-paste the build version here.
  11. Saml1er


    Download latest nightly from nightly.multitheftauto.com. That might solve it.
  12. Have you checked ifp_demo resource? animations are synced there.
  13. Copy-paste your meta.xml here. Also, make sure that rifle.ifp is located in the top directory of the resource.
  14. Saml1er

    crash plz help

    Looks like a common crash, i.e., not enough memory.
  15. Saml1er


    @owerrrAre you using Avast? Make sure that you are using the latest version of MTA from mtasa.com.
  16. It's going to be a lot of work. You have to manually convert the models to DFF, COL, and TXD files.
  17. Saml1er

    Kicked why?

    You did something. The anti-cheat detected a known trainer. Please follow these steps:
  18. Delete all of your code from server.lua and client.lua. Copy-paste everything from ifp_demo and put this in client.lua at bottom of the file: addEventHandler("onClientResourceStart", resourceRoot, function() local ifpIndex = 7 ReplacePedBlockAnimations ( localPlayer, ifpIndex ) triggerServerEvent ( "onCustomAnimationReplace", resourceRoot, localPlayer, ifpIndex ) end )
  19. "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
  20. 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 )
  21. 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.
  22. No, I was talking to NmLa. I asked you a question but you didn't respond:
  23. 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.
  • Create New...