Jump to content

FileEX

Helpers
  • Posts

    41
  • Joined

  • Last visited

  • Days Won

    2

FileEX last won the day on April 14

FileEX had the most liked content!

Member Title

  • Forum Helper

Details

  • Gang
    Grove Street
  • Location
    Poland
  • Occupation
    Cop
  • Interests
    Computer Science, Programming, Reverse engineering

Recent Profile Visitors

859 profile views

FileEX's Achievements

Snitch

Snitch (10/54)

9

Reputation

  1. Sometimes interpolateBetween does some weird rounding. Try manual interpolation money = lastMoney + (newMoney - lastMoney) * progress; Or use what Tekken provided
  2. The "Blur" resource does not have the dxDrawBluredRectangle function or it is not exported in meta.xml
  3. I don't understand what the problem is. If you exceed the maximum amount, it is normal that the number is higher
  4. What do you mean by wheel type?
  5. Read this https://wiki.multitheftauto.com/wiki/Script_security and don't buy anything
  6. 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.
  7. Upload your vehicles.ide to your server's FTP and load it on the server side with fileOpen and fileRead.
  8. The player places the vehicles.ide file in the mta->mods->deathmatch->resources->your resource directory Then, from the script level, you open this file and load data from it. Exactly the same as the script above. You can check its source code If you just want to have the vehicles.ide file on the server, you can upload it to your server's FTP and load it on the server side. I don't know what you want to achieve, but the only option is to manually read the file contents and parse its contents
  9. If you set images downloading to false, the files will not be downloaded for the client, and the scripts that use these images, e.g. for the GUI, will stop working properly due to the lack of files. If you don't want to save the images to the client's disk, you can keep them on the server and send only the raw data to the client and use it to create a texture for drawing the GUI. You can also consider using SVG, which allows you to easily create images from string data without having to download .svg files to disk
  10. When it comes to fixed lines, yes, you simply need to modify the recorded line by adding effects, e.g. in Audacity. When it comes to voice chat, there are special programs/modulators for it. As for the script, I'm not sure. You can try this https://wiki.multitheftauto.com/wiki/SetSoundEffectParameter and this https://wiki.multitheftauto.com/wiki/SetSoundEffectEnabled
  11. Server-side scripts are not downloaded by players, so setting the cache does not change anything. Setting the cache means that the script is not downloaded to the player's disk, but is still loaded into memory so that it can run. It can still be manipulated by the client, so you should never trust data from the client. More about it here https://wiki.multitheftauto.com/wiki/Script_security
  12. Change resourceRoot to root in the loginAccount event on server-side
  13. I don't think you can disable the horizontal scrollbar. You can force it to show, but you can't hide it. The width of the gridlist columns cannot exceed 0.95, then the horizontal scrollbar will not appear.
×
×
  • Create New...