Stable2.0.0
UPDATE
We're jumping straight to 2.0 for this release. The primary purpose of this update is to update a very old addon to bring it closer to today's standard in regards to the code. There's been a lot of focus on optimizing code and redoing some old design. It isn't perfect, but it also isn't an entire recode and the update is completely free for all customers <3
- Addon structure now follows gmodstore guidelines.
- New overhead design on buy and sell NPCs.
- Replaced depreciated self.Owner with self:GetOwner()
- Implemented proper usage of DistToSqr to only show 3d2d when close enough (configurable).
- Cached colors and materials.
- Replaced all possible pairs with ipairs.
- Use DarkRP.formatMoney instead of hardcoding dollar sign.
- Implemented a proper delay on detain and tie npc weapons.
- Removed a few remaining usage of Distance and replaced with DistToSqr.
- You can now also right click with both weapons and it will act as primary attack.
- Replaced depreciated self.Weapon with self.
- Background color for the NPC menus is now darker.
- Added more notifications to the tie and detain npc weapons so they're less confusing.
- Adjusted NPC positions in default supported trucks.
- Added default configuration for new LW trucks.
- Mercedes Sprinter Boxtruck
- Mercedes Sprinter LWB
- Mercedes Sprinter SWB
- Fixed showing incorrect cooldown when trying to traffic humans.
- Replaced depreciated UniqueID with EntIndex.
- Fixed a bunch of stuff with killing NPCs being trafficked.
- The NPCs have "pocket cash" on them, which drops if killed by a non-trafficker.
- Some code was called with any NPC killed, not just the trafficking npcs.
- Fixed missing config causing an error.
- Fixed error if killing an npc_citizen entity without an owner.
- Removed all usage of global functions/variables.
- Changed the font to Montserrat.
- Redone the display through the map to show where the drop-off is.
- Distance now shows properly in meters.
- Only create timers when necessary and remove them again when they're not needed.
- Rate limited net messages.
Check out the new video presentation and media for updated user interface.