Commit Graph

49 Commits

Author SHA1 Message Date
ElPumpo e25f5dee2e Temp code revert for loadout updating, fixes ammo sync 2020-02-11 11:37:47 +01:00
ElPumpo cd1ce6a849 Don't parse item object to client, added weapon component notifications (more see desc)
- Removed xPlayer .displayBank()
- Fixed issues with giving weapon using commands
- Modified ESX.UI.ShowInventoryItemNotification() to take string instead of table
- Minor adjustments and variable renames
- Fixed lower case weapons not droppable
- Removed /disconnect command becasue fivem implemented their own
2020-01-20 14:33:24 +01:00
Julien80 eb407d980c Fix give weapon on esx:giveInventoryItem 2020-01-18 20:53:18 +01:00
ElPumpo 0fbd5d03a2 Minor changes, fixed giving weapon? 2020-01-15 14:10:57 +01:00
ElPumpo b3a36747a3 Removed saving Steam name in database, closes #246 2020-01-15 10:27:07 +01:00
ElPumpo f89e051756 BREAKING COMMIT - Player loading improvements (read description!)
This commit implements a new way of saving and getting player coords.

Player coords are synced with its assigned xPlayer, the syncing interval is defined in the configuration file.
Also coords wont sync if the player is too close to their previous location.

Existing servers must change their database to account for the new length of the position varchar, at 53 chars max. There's also a column default value specified in the sql file.

New xPlayer functions:
- .getCoords()
- .setCoords() (x,y,z,heading (optional) table
- .updateCoords()

The last one is used for syncing coords from client (interval). The second one will teleport the player. First one is a renamed .getLastPosition()
2020-01-12 22:13:30 +01:00
ElPumpo 5566abca4f Removed updating loadout from client - usally spawned weapons 2020-01-12 22:04:59 +01:00
ElPumpo 91eb2f8505 Removed jobmaster group 2020-01-12 19:18:41 +01:00
ElPumpo feaf842420 Show player name and not steam name, fixes #354 2020-01-05 15:49:00 +01:00
ElPumpo fdabf80657 Implemented ESX weapon drops with components support, closes #421 2020-01-04 01:33:12 +01:00
ElPumpo 2f75152457 Changed how pickups work, see desc. Fixed #338, fixed #420
- Pickups now require you to press E once nearby to pick up
- Fixed pickup objects sometimes not showing up #420
- Added animation to picking up and throwing items
- Added message when inventory cannot accept picking up item
2020-01-03 19:20:26 +01:00
ElPumpo 2140f8628c Added log level to print uses, and change formatting 2020-01-03 13:55:23 +01:00
ElPumpo 2d80e55631 rename _source variable to playerId 2019-12-27 13:49:40 +01:00
ElPumpo c7a30efdd1 Added ESX.Table.Set() function and fixed accounts not loading
http://www.lua.org/pil/11.5.html
2019-11-16 17:41:41 +01:00
ElPumpo aa1ad0a1e8 Minor code improvements 2019-11-14 22:26:13 +01:00
ElPumpo f32f44f502 Fixed trailing spaces, and commands.lua use apostrof 2019-11-14 21:25:16 +01:00
Petr Sopf 40f9d2aa1f Fix pickups not syncing server sided 2019-10-23 21:47:35 +02:00
ElPumpo 145f8ebe75 Breaking changes: implemented global weight inventory system, read description before updating!
- Fixed #256
- Implements #173

__NO OFFICIAL ESX SCRIPT WILL WORK WITH THIS AT THE MOMENT__

This commit will break your entire ESX if you dont use the new SQL format, follow the new one if you want it all to work properly.

Scripts using `item.limit` will break too, instead use `xPlayer.canCarryItem(item, count)`
2019-10-13 20:56:09 +02:00
ElPumpo 8586fdcce2 Fix thrown items not synced with mid-joined players 2019-09-18 13:47:41 +02:00
ElPumpo 5159e892fe Removed unneeded backticks 2019-08-10 12:43:09 +02:00
Samuel 5c1416e4bf Merge pull request #274 from izio38/patch-1
Fixed wrong notification target in give weapon code
2019-07-20 14:22:22 +02:00
izio38 fb9f4263a2 wrong notif target 2019-05-05 23:00:08 +02:00
jquiaios cde81c4e8e Fix mislocated break in player accounts loop 2019-04-26 19:03:01 -04:00
ElPumpo 166d8c17a6 Ignore items not registered in "items" table 2019-04-22 11:36:49 +02:00
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 06aa7bf513 Minor changes 2019-02-22 18:51:38 +01:00
ElPumpo 8cd724e939 Parse xPlayer in esx:playerLoaded 2019-01-03 14:01:34 +01:00
ElPumpo 201b5f9ff2 Use old native as new one broke drawing 3d text 2018-12-23 17:46:55 +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 9093c9912b Fixed #157 2018-11-10 11:11:07 +01:00
ElPumpo aedd4132cd Only select what we need 2018-11-09 23:38:00 +01: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 5bf8dc2b80 Major locale formatting improvements 2018-06-19 21:52:38 +02:00
Corey McCown 8b8a4f45ec Update main.lua
Fix #38, item pickup issue.
2018-05-15 13:46:09 -04:00
ElPumpo 3760c3350f Improved translations, fixes #69 and #67 2018-05-01 12:09:06 +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 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
Jérémie N'gadi 43946dcec4 fix(item insertion): Fix mysql timeout when inserting too many items 2017-10-07 10:30:24 +02:00
Jérémie N'gadi 97adf4f97c build(submodules): Remove submodules + move everything at root 2017-09-15 14:26:56 +02:00