Commit Graph

58 Commits

Author SHA1 Message Date
ElPumpo 3d27e2b0a6 Indent cleanup 2019-04-17 11:38:12 +02:00
ElPumpo 17cbed0263 Added table module, thanks to Gizz
Co-Authored-By: Jérémie N'gadi <jeremie.ngadi@gmail.com>
2019-04-13 23:00:26 +02:00
ElPumpo cd9383a56f Grade supposed to be number type 2019-03-06 22:50:43 +01:00
ElPumpo a088fae0e4 Compatibility with old loadouts prior to components update, fixes #194 2019-03-04 21:32:23 +01:00
ElPumpo b8d0669b64 Fixed job issues and dont query sql on xPlayer creation 2019-03-04 21:21:18 +01:00
ElPumpo e976de722b Implemented xPlayer.setLastPosition and fixed saving coords 2019-02-28 12:59:44 +01:00
ElPumpo 9a39f83aee Minor changes 2019-02-28 12:57:54 +01:00
ElPumpo 5ab6123b44 Implemented ESX.DoesJobExist() 2019-02-28 12:57:09 +01:00
ElPumpo 06aa7bf513 Minor changes 2019-02-22 18:51:38 +01:00
ElPumpo 1a2c52bc83 Check if last position exists 2019-01-03 14:19:18 +01:00
ElPumpo 8cd724e939 Parse xPlayer in esx:playerLoaded 2019-01-03 14:01:34 +01:00
ElPumpo 79c626aa9a Fixed removing weapon 2019-01-03 13:32:29 +01:00
ElPumpo 28d1ebe9d9 Fixed problems with /clearloadout 2019-01-02 12:51:18 +01:00
ElPumpo b1d58d2abd Removed some never used streaming helpers 2019-01-01 11:03:02 +01:00
ElPumpo 22a4d67971 Fix new player error on first spawn 2018-12-31 14:11:05 +01:00
ElPumpo 4279cc03f7 added /clearinventory /clearloadout 2018-12-29 14:07:04 +01:00
ElPumpo e0f9358b22 Only add weapon component once, check if player has weapon 2018-12-29 13:47:01 +01:00
ElPumpo caec057954 Initial support for weapon components 2018-12-29 02:10:37 +01:00
ElPumpo 201b5f9ff2 Use old native as new one broke drawing 3d text 2018-12-23 17:46:55 +01:00
ElPumpo b63c147fc0 Proper raycast arguments, trim last position 2018-12-23 15:05:00 +01:00
ElPumpo 2fd7d326be 'Throwing' update, see desc, resolves #19
- proper i18n strings for dropping accounts, money, standard and weapons

- check if the player has the weapon

- workaround for duplicating weapon ammo when dropping weapon with 0 ammo

- removed throw delay

- code cleanup
2018-12-23 14:32:38 +01:00
ElPumpo 9224f9119f Minor changes, updated native names 2018-12-23 11:38:39 +01:00
ElPumpo c975fea6d3 Don't give weapon if target already has one, seperate string for weapon without ammo 2018-11-25 17:32:36 +01:00
ElPumpo 3fc17880f8 Added ESX.Math.Trim function 2018-11-20 21:03:44 +01:00
ElPumpo a4152db8c3 xPlayer.hasWeapon() function 2018-11-11 11:52:16 +01:00
ElPumpo 9093c9912b Fixed #157 2018-11-10 11:11:07 +01:00
ElPumpo bac7be4f6b Added setName() to xPlayer class 2018-11-10 10:38:00 +01:00
ElPumpo aedd4132cd Only select what we need 2018-11-09 23:38:00 +01:00
ElPumpo c7693d471d mysql-async v3.0.1 support 2018-09-23 22:00:19 +02:00
ElPumpo 810949fe09 Performance improvements 2018-09-20 22:45:00 +02:00
ElPumpo c07cdde7c8 Tab indent update 2018-09-01 17:43:35 +02:00
ElPumpo 0cac67ef86 Renamed new command 2018-08-21 21:56:35 +02:00
ElPumpo d161162190 Car delete now uses player direction, Added /cardelete (same as /dv), removed /dv arg 2018-08-21 21:23:50 +02:00
ElPumpo 6551c4ef03 Removed unneeded chat suggestions for command aliases 2018-07-18 12:29:40 +02:00
ElPumpo 985f2a81fb Refactoring, added shared functions
- Added ESX.ShowHelpNotification
- Added misc shared functions
2018-07-07 13:31:40 +02:00
ElPumpo 8dad759187 Added /clear /cls for clearing chat, 4 tab indent for inventory 2018-07-01 14:48:37 +02:00
ElPumpo 7ed39a4666 Fixed duplicate locale strings, closes #95 2018-06-25 21:45:23 +02:00
ElPumpo 3de26d020b Improved ammo handling 2018-06-22 22:25:34 +02:00
ElPumpo 5bf8dc2b80 Major locale formatting improvements 2018-06-19 21:52:38 +02:00
ElPumpo a738a82970 Implemented Config.EnableSocietyPayouts 2018-06-16 10:38:07 +02:00
Ben Sherman f5a9a96f38 Resolved invalid number format
Setting jobs on players causes grade check to return an error rather than the check itself.

`if PlayerData.job.grade >= 3 then` returns `Attempt to compare number with string`
2018-05-26 22:51:08 +02:00
Corey McCown 8b8a4f45ec Update main.lua
Fix #38, item pickup issue.
2018-05-15 13:46:09 -04:00
ElPumpo 66e7eceddf Improved paycheck system, added advanced notifications, see desc
- Improved paycheck system
    - we now take society money if there is any, or else the employees wont get a salary at all
    - now using ESX.ShowAdvancedNotifications
2018-05-11 13:57:35 +02:00
ElPumpo 3760c3350f Improved translations, fixes #69 and #67 2018-05-01 12:09:06 +02:00
ElPumpo 0edf413a99 Exploit fixed: money negative values 2018-04-28 11:34:25 +02:00
ElPumpo 5f93c0a129 Improved i18 formatting, see desc
- /giveweapon now takes ammo as an argument
- improved Swedish translation
- hide actions in the inventory menu if they cannot be done.
- general code improvements, cleanup
2018-04-15 22:52:03 +02:00
ElPumpo 36d82c922f See the description for changes (cleanup)
- reworked /setmoney [id] [money type] [amount]
- implemented /disc (/disconnect)
- the give submenu does no longer appear if there's no one nearby
- if you have 0 cash, bank or black money it wont appear in your f2 inventory
- when selecting a item, let the item label be the title of the menu (inventory menu)
- minor improvements
2018-04-15 01:33:33 +02:00
ElPumpo 2e67349645 Fixed hardcoded strings, added new trigger esx:onPlayerDeath 2018-04-14 14:25:37 +02:00
KandaSoranyan eb42f346b2 Add files via upload 2018-02-19 03:30:02 +01:00
Jérémie N'gadi 36f14f62ed feat(pickups): Improve pickups
Don't add more items than the inventory limit => Re-throw excessive amount on floor + Pickup count
display
2017-12-11 10:26:51 +01:00