Skip to content

Releases: Fernando-A-Rocha/mta-add-models

v2.1.0

23 Jan 10:21
b134c7b

Choose a tag to compare

⚠️ The previous 2.0.4 version remains semi-stable, but it is highly recommended that you update your newmodels resource to this version, as well as make use of the new resource added (see below). ⚠️

PLEASE CHECK THE UPDATED README AND THE OTHER UPDATED DOCUMENTATION PAGES.

Changes

  • newmodels:

    • Fixed problem with modList table not copying properly
    • Fixed editor custom funcs & create element base ID
    • Added editor custom pickup support
    • Fixed freeing functions
    • Added disableAutoFree modList setting & add functions parameter
    • Added forceFreeAllocated exported function
    • Added isModAllocated exported function
    • Fixed test commands
    • Fixed setElementModel refresh in server.lua and client.lua
    • Added checkModelID exported function
    • Remade test_server.lua examples
  • Added newmodels-engine resource (thanks @httpRick for the inspiration)

    • 7 exported functions
    • 1 optional test command
  • Updated all documuentation

    • improved descriptions and links
    • rewrote Lua examples which now use newmodels-engine for simpler usage

Full Changelog: v2.0.4...v2.1.0

v2.0.4

16 Jan 16:08
4d4881b

Choose a tag to compare

Changes

This version brings a new feature, it doesn't fix anything from the previous version.

Add custom pickup support! createPickup + setElementData. It uses setPickupType to change the pickup model clientside.
Thanks @httpRick for the idea

Full Changelog: v2.0.3...v2.0.4

v2.0.3

14 Jan 22:44
1396eda

Choose a tag to compare

⚠️ Fixed the following exported functions (there was a problem with sourceResource variable):

  • addExternalMod_IDFilenames
  • addExternalMods_IDFilenames
  • addExternalMod_CustomFilenames
  • addExternalMods_CustomFileNames

Full Changelog: v2.0.2...v2.0.3

v2.0.2

14 Jan 14:47
eeedac6

Choose a tag to compare

Changes

  • Added Async library for some foreach loops
    • Replaces the bad use of coroutines I made in server.lua
  • Updated newmodels-example startup function
    • Now uses the add external mods list instead of adding 1 by 1
  • Fixed newmodels-example /testvehicles
    • It was spawning vehs with incorrect parent/base model ID
  • Fixed newmodels exported function removeExternalMod wrong variable name
    • You can test it by using /removemod from newmodels-example

Full Changelog: v2.0.1...v2.0.2

v2.0.1

12 Jan 23:08
6756a7d

Choose a tag to compare

Changes

  • fixed version string, was 2.0 instead of 2.0.0 (missing last 0) => causing error in updater_s.lua, now it's 2.0.1 anyway
  • added STARTUP_VERIFICATIONS setting that allows u to skip the startup mod list checks
  • added OTHER_RESOURCES setting list that allows you start/stop resources within newmodels (very useful), it has sampobj_reloaded in the list as an example
  • added coroutines in some loops in server.lua to prevent "infinite running script" error in case of too many iterations

Full Changelog: v2.0.0...v2.0.1

v2.0.0

11 Jan 15:45
0652c25

Choose a tag to compare

⚠️ THIS IS NO LONGER THE LATEST STABLE RELEASE, CHECK HERE ⚠️

Changes

  • fixed an outputDebugString in removeExternalMod(id)
  • newmodels example resource versions in meta.xml now match newmodels version they are compatible with
  • added addExternalMods_CustomFileNames exported function
    • used by sampobj_reloaded to send list instead of calling exports a million times for each mod
  • fixed unefficient isDefaultID function
  • fixed server startup checks not allowing new "paths" format in mod_list.lua
  • removed pAttach resource dependency which is no longer used by any example resource
  • added support for 'download="false"' file attribute in meta.xml
    • newmodels will only download the mod files when needed (on try set element data) !!!
  • added forceDownloadMod and isBusyDownloading exported functions
  • added Downloading dxDraw dialog that can be disabled in _config.lua
  • added kick after X download failures in, customizable _config.lua

Full Changelog: v1.8.0...v2.0.0

v1.8.0

15 Apr 19:04

Choose a tag to compare

What's Changed

Full Changelog: v1.7.0...v1.8.0

v1.7.0

10 Mar 19:32
2b868df

Choose a tag to compare

Backwards compatible (almost) release!

Changes:

  • Altered the way you're meant to use spawnPlayer: corrected the example in README which was wrong
  • Added a fix for skin not loading after you re-spawn the player: it now refreshes (#12)
  • Vehicle upgrades are now saved in the server for syncing to all clients. Previously vehicles would lose upgrades every time the model was changed clientside. (#13)
  • Added ignoreTXD, ignoreDFF and ignoreCOL variables to use in mod_list and exported functions for loading models which don't need DFF/TXD(/COL for objects) (suggested by Gaimo#0152)

For any support with the newmodels library you can contact me. Details in the README.md

Enjoy! 🔥

Send me pics of newmodels in action in your servers <3

v1.6.9

24 Jan 22:46

Choose a tag to compare

Stable release:

  • Important fixes and improvements
  • Minimum client & server version updated to keep up with MTA's latest fixes

Check this update's commits if you don't want to re-download everything and make the changes yourself.

Enjoy! 🎉

v1.6.7

25 Nov 18:23

Choose a tag to compare

Stable release:

  • Added event 'onMapListReceived' for other resources to handle

Check this update's commits if you don't want to re-download everything and make the changes yourself.

Enjoy! 🎉