Jump to content

Forums

  1. Multi Theft Auto: San Andreas 1.x

    1. Support for MTA:SA 1.x

      HELP! HELP! Need help? Post here.

      54.8k
      posts
    2. User Guides

      These guides are a good place to start learning how to achieve certain things within MTA in an efficient and well mannered way.

      11
      posts
    3. Open Source Contributors

      This space is for contributors to discuss the development of MTA. No user suggestions/support.

      1.3k
      posts
    4. Suggestions

      Suggestions and requests go here. Please note that actual feature requests must be filed on our GitHub.

      7.7k
      posts
    5. Ban appeals

      Use this forum to appeal your GLOBAL MTA:SA bans. Permanent bans only - appeals for timed ones (eg. 24 hours) will be refused.

      Do not use it for appealing server-specific bans as we do not have power over these specific servers.

      4.6k
      posts
  2. General MTA

    1. News

      News and updates on Multi Theft Auto.

      9.8k
      posts
    2. Media

      User-made screens and movies go here.

      4.5k
      posts
    3. Site/Forum/Discord/Mantis/Wiki related

      Share your comments & concerns about our services.

      5.6k
      posts
    4. MTA Chat

      MTA related chat that is NOT support related!

      2.1k
      posts
    5. 330.3k
      posts
  3. MTA Community

    1. Scripting

      All Lua scripting topics related to Multi Theft Auto.

      261.2k
      posts
    2. Maps

      Discussions for maps on various gamemodes.

      13.4k
      posts
    3. Resources

      Everything else about resources.

      28.5k
      posts
    4. Other Creations & GTA modding

      This section includes things such as GUI themes, forum userbars, user-created MTA logos, etc. Also contains topics which cover general GTA modding areas that can be used in MTA, such as modelling.

      2.4k
      posts
    5. Competitive gameplay

      Discussions about various MTA-related competitive gameplay events. Also gang (clan) forums.

      26.7k
      posts
    6. Servers

      Looking for a server to play on? Looking for someone to host your server? Looking for a place to discuss with other server owners? Here's where to look.

      15.6k
      posts
  4. Other

    1. General

      Non-MTA discussions. Anything you want.

      38.1k
      posts
    2. Multi Theft Auto 0.5r2

      Discussion regarding Multi Theft Auto 0.5r2 for GTAIII and Vice City.

      672
      posts
    3. Third party GTA mods

      Showcase for single player mods and requests.

      811
      posts
  5. Archive

    1. 144k
      posts
    2. Trash

      These posts have broken forum rules. They are stored here temporarily so offending users can see what they have done wrong.

      2.5k
      posts
  • Posts

    • mta has to make a function for wheels in vehicles.ide to change vehs wheels type. can't make it work for now...
    • Version = 1.6-release-22388.0.000 Time = Wed Apr 17 00:33:07 2024 Module = C:\ProgramData\MTA San Andreas All\1.6\GTA San Andreas\gta_sa.exe Code = 0xC0000005 Offset = 0x003C91CC EAX=1C291C88  EBX=1C291C78  ECX=0177FA78  EDX=000BA3CC  ESI=00000000 EDI=00000001  EBP=0177FC28  ESP=0177FA58  EIP=007C91CC  FLG=00010202 CS=0023   DS=002B  SS=002B  ES=002B   FS=0053  GS=002B Host is 21GB of ram, my Pc is 16GB of ram. i wanna know where's the issue exactly so i could fix it, everyone in the server crashes after playing for 10 mins. can't last an hour (that sounds mad) Thanks.
    • As you can see, you start the interpolation from 0. Write down the current balance of money before you start the interpolation and start from there. You can use e.g. a ticks to see if the amount of money has changed local fromMoney, toMoney, visibleMoney = 0,0,0; local moneyCheckTick,moneyAnimTick = getTickCount(); if (moneyCheckTick and not moneyAnimTick) then if (getTickCount() - moneyCheckTick > 1000) then -- check every 1 s local money = getPlayerMoney(localPlayer); if (visibleMoney ~= money) then moneyAnimTick = getTickCount(); fromMoney, toMoney = visibleMoney, money; end moneyCheckTick = getTickCount(); end end if (moneyAnimTick) then local progress = (getTickCount() - moneyAnimTick) / 1000; visibleMoney = interpolateBetween(fromMoney, 0, 0, toMoney, 0, 0, progress, 'Linear'); if (progress > 1) then moneyAnimTick = nil; end end -- dxDrawText for visibleMoney variable   Sorry for the broken indentation in the code, but the code editor on the forum is strange and I don't know why it happens.
    • hud={} moneyHUD={"money"} hud.font = dxCreateFont("font.ttf", 32.5, false, "antialiased") local lastMoney = 0 local moneyChangeStartTime = 0 local moneyChangeDuration = 2000 addEventHandler("onClientResourceStart", getResourceRootElement, function() setPlayerHudComponentVisible(moneyHUD, false) end) addEventHandler("onClientRender", root, function() local money = getPlayerMoney(localPlayer) money = math.min(money, 99999999) if money ~= lastMoney then lastMoney = money moneyChangeStartTime = getTickCount() end local elapsedTime = getTickCount() - moneyChangeStartTime local progress = elapsedTime / moneyChangeDuration local money = interpolateBetween(0, 0, 0, money, 0, 0, progress, "Linear") dxDrawText("$00000000", 1305, 278, 1598, 328, tocolor(255, 255, 255, 255), 1.00, hud.font, "center", "center", false, false, false, false, false) if elapsedTime >= moneyChangeDuration then lastMoney = money end end) adds money smoothly, but when you add an amount greater than the maximum (99999999) it starts adding again from zero
    • Please disregard the post above.. This is a working code ----server addCommandHandler("adminchat", function(player, _, ...) local account = getAccountName(getPlayerAccount(player)) --get the player account for _,v in ipairs(getElementsByType("player")) do if isObjectInACLGroup("user." .. account, aclGetGroup("Staff")) then --- this section you can customize which ACL role they are. outputChatBox("#7D6608[Admin]#9A7D0A"..getPlayerName(player):gsub("#%x%x%x%x%x%x", "").."#7D6608: #FFFFFF"..table.concat({...}, " "):gsub("#%x%x%x%x%x%x", ""), v, 255, 255, 255, true); --- thisplay chat you can customize as well. else outputChatBox("You don't have enough access to use this chat!") end end end ) ---client bindKey("h", "down", "chatbox", "adminchat");   Please hit like on 2 of my posts if these helped you  

Twitter Feed

×
×
  • Create New...