Commit Graph

92 Commits

Author SHA1 Message Date
Linden 6232541cfb Use PrimaryIdentifier 2021-05-09 04:53:57 +10:00
Linden 9cca834880 Update main.lua 2021-05-09 03:41:28 +10:00
Linden cf2606866a Trigger an event on server once xPlayer is created 2021-05-09 01:59:46 +10:00
MiddleSkillz 8f91023bd9 Added Some More Stuff 2021-05-05 01:18:20 -06:00
Mycroft c8c8ffeb4d add features 2021-05-03 22:37:02 +01:00
Mycroft 6c7b3ecf9e tweaks 2021-05-03 20:39:18 +01:00
Mycroft 9212219d46 changes 2021-05-03 20:04:39 +01:00
Mycroft c4add91157 things 2021-04-29 23:04:36 +01:00
Mycroft bee2165105 Kashacter 2021-04-29 18:39:31 +01:00
Mycroft 9849bc9e51 Version Checker 2021-04-28 22:03:39 +01:00
Mycroft 4b2d95059c Updates 2021-04-28 21:42:12 +01:00
tabarra e265976561 default group for ace admins
This allows server owners to become ESX admins on their first joins, based on if they have the `command` ace permission or not.  
If they do have that ace, they can `setgroup <id> admin`, so access-wise that's ok.  
I would commit this to master, but since v2 is not yet ready, PlumeESX uses "v1-final".
2021-04-04 16:30:04 -03:00
ArkSeyonet eacf7c0b94 Update es_extended
- Finish removing code for forcing stop resources
2020-05-17 04:16:00 -05:00
Jérémie N'gadi 947f2184ff Revert "pt-PT Translation pt.lua" 2020-05-15 18:21:28 +02:00
Jérémie N'gadi ff8625cb32 Now we can extend xPlayer without touching core files 2020-05-13 21:04:06 +02:00
Jérémie N'gadi f8c3dd3b2f ensure base as first migration 2020-05-11 22:43:15 +02:00
Jérémie N'gadi 3ef71f7d35 ensure migration order 2020-05-11 22:41:56 +02:00
Jérémie N'gadi 29d2a48a12 Added some modules + Experimental SQL auto-migration stuff 2020-05-11 14:05:00 +02:00
Jérémie N'gadi 390cce6195 single resource concept + first attempt to reorganize code 2020-05-11 04:21:10 +02:00
ElPumpo 7d7f72082a Only grant ace permission if needed (even if fivem devs changed the behaviour) 2020-04-24 15:23:25 +02:00
ElPumpo cb9038c911 Fixed #709 throwing weapons, fixed throwing weapons missing components, added player join msg 2020-04-24 15:18:16 +02:00
ElPumpo 33e928008e Fixed StopResource() not allowing some resources to be stopped 2020-04-19 11:53:45 +02:00
ElPumpo 71e24f0a72 Fixed while statement 2020-04-13 19:02:56 +02:00
ElPumpo 238bcae7c0 Stop incompatible resources (see description)
Automaticly stop resources that

- a) not compatible with ESX, for example spawnmanager
- b) does the same as esx does, but what esx probably does better
2020-04-13 17:50:20 +02:00
ElPumpo ddd3a88336 Minor variable renaming 2020-04-11 11:55:27 +02:00
ElPumpo fde5571b43 Improved error messages and fixed players joining with same identifier, fixes #605 2020-03-26 11:59:27 +01:00
ElPumpo be2dc2e9e2 Minor adjustments 2020-03-25 22:45:23 +01:00
ElPumpo 8a586e433c ⚠️⚠️BREAKING COMMIT⚠️⚠️: mapmanager & spawnmanager ditch
Make sure you remove or disable mapmanager and spawnmanager
2020-03-23 13:58:41 +01:00
ElPumpo 9a1dfa42ca Sync consumed ammo with server properly
No more security issues here!
2020-03-22 09:43:43 +01:00
ElPumpo ff9930068f Keep weight stored 2020-03-15 12:20:08 +01:00
ElPumpo a8255ce6e3 Corrected spelling 2020-03-11 09:44:26 +01:00
ElPumpo e0d561649b Added invalid command handler 2020-03-09 13:05:33 +01:00
ElPumpo 7efcf85abb Fixed indent mistake 2020-03-09 12:35:40 +01:00
麻辣戈壁 086f280a77 Fix give weapon ammo on esx:giveInventoryItem 2020-03-07 19:59:45 +08:00
ElPumpo 3ba2ed150f Save accounts as encoded json text, migrate script found in development discord 2020-03-06 20:41:37 +01:00
ElPumpo a2308dec59 Implemented starting balance, closes #537 2020-03-04 13:01:46 +01:00
ElPumpo 4d9af4e1ab Improved saving loadouts (see desc)
- Only save weapon components if needed, wont save default clip anymore, and if no other component is available then its not saved at all

- Tint index not stored if not above 0
- Weapon label not saved in database since its useless
- Validate weapon on player load
2020-03-01 10:54:03 +01:00
ElPumpo 73a818aed9 Implemented adding chat suggestions 2020-02-17 23:07:38 +01:00
ElPumpo 35a726685e ⚠️⚠️BREAKING COMMIT⚠️⚠️: Complete ES ditch 2020-02-17 15:22:09 +01:00
ElPumpo f236a67d63 Implemented json encoded inventory, closes #177 2020-02-12 12:33:14 +01:00
ElPumpo 68712016ed Added failsafe default coords 2020-02-12 12:04:00 +01:00
ElPumpo baa9ca3afc Implemented weapon tint support (desc), closes #477
- Implemented two new xPlayer functions:
  - .getWeaponTint(weaponName)
  - .setWeaponTint(weaponName, weaponTintIndex)

Thanks to @profex1999 for co authoring this!

Co-Authored-By: Andrea Passarini <profex1999@users.noreply.github.com>
2020-02-11 21:11:54 +01:00
ElPumpo f11e97e0a5 Improved ammo label handling, extended weapon configuration file with ammo hash and label 2020-02-11 11:50:59 +01:00
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