Commit Graph

63 Commits

Author SHA1 Message Date
Scullyy 8ca8282f2a Prevent duplicated phone and account numbers
**Describe Pull request**
This will prevent the chance of duplicated phone and account numbers, although the chance is very low it's still a possibility as I have experienced this myself and this will resolve that issue. I feel like this should be implemented as these are meant to be unique for each player.

**Questions (please complete the following information):**
- Have you personally loaded this code into an updated qbcore project and checked all it's functionality? Yes
- Does your code fit the style guidelines? Yes
- Does your PR fit the contribution guidelines? Yes
2022-02-03 13:31:48 +00:00
Pierre Grassin 89036ac470 Update player.lua 2022-01-10 18:57:13 +01:00
Kakarot d786a3cd07 Locale/oxmysql
MUST UPDATE OXMYSQL TO 1.9 OR HIGHER
2022-01-10 01:52:59 -06:00
Kakarot 0b2e61be7e Merge pull request #399 from Yianss/patch-1
Update the way jobrep metadata is handled
2022-01-05 11:48:13 -06:00
uShifty ae64a9ed02 Fix(RemoveItem): Exploit Remove Item
This issues fixes the possible exploit when removing an item when sending the item slot parameter before you were able to send any amount of an item and it would return as if the remove item worked just fine returning true
2022-01-01 22:23:12 -08:00
Kakarot 71e4d7b8ff Revert weird shit 2022-01-01 21:32:37 -06:00
Ollie Pugh 8ef28d2d05 Added support for placing items on ground if inv too full 2021-12-30 02:56:30 +00:00
Yianss 1b3225d8f6 Update the way jobrep metadata is handled
When you add a new job, existing players cannot get jobrep for it because the original jobrep metadata is always loaded instead. With this method, existing players can get jobrep for new jobs.

This checks to make sure that jobrep metadata isn't nil so that new players do not get stuck in an infinite loop, and instead creates new jobrep metadata for them.

There may be a better way to do this, but this works.
2021-12-27 02:49:34 -05:00
Jack 7c3d1bc973 Fix security issue 2021-11-28 17:10:27 +00:00
jay-fivem 7faad000ba Removed useless string 2021-11-17 21:12:50 +10:30
vanillaa ee9a922684 Update player.lua 2021-11-14 12:54:11 +02:00
Kakarot 9a1f1ab565 Remove table.insert 2021-11-02 23:16:52 -06:00
Kakarot 07e110920f Inventory singleSync 2021-11-01 15:24:21 -06:00
Kakarot 2c20ffba03 Merge pull request #274 from LV-Soft/main
Fix always "on duty" at login.
2021-10-30 17:07:05 -06:00
Kakarot 570129bfd3 chore(oxmysql): Replace fetch 2021-10-24 11:18:52 -06:00
jxnnyo e1a18090ea update player.lua
There was an issue when it was indexing source even though it was nil. Fully tested in my server.
2021-10-19 19:12:09 +01:00
Minguez ce396a06ed Fix always "on duty" at login. 2021-10-15 20:31:59 -03:00
Taso a5ebf4b9ce chore(styling): ensure consistent indentation & define editorconfig 2021-10-13 21:54:57 -04:00
GhzGarage 34c574daf2 fix(server/events/player): Position
Position was not updating on player dropped but was on player save event.
2021-09-25 18:31:28 -05:00
Kakarot 923f3d3a31 ⚠️ Major Update ⚠️
- Major cleanup of all files including reformatting & notations
- Added an optional export to add to scripts as an alternative to import.lua
- Added player state to OnPlayerLoaded so no more need for isLoggedIn inside scripts
- Updated all events to the new RegisterNetEvent and got rid of unneeded handlers
- Added the ability for ACE permissions with commands
- Added two new config options for player update interval and status update
- Changed players table to use citizenid column as primary key <-- very important
- Overall sloppy code cleanup, removal of unused code, got rid of nil checks
2021-09-24 22:46:20 -06:00
Tony 2d2a33b1be SQL2 error fix 2021-09-13 03:05:03 -04:00
Tony c1eadcc827 Update SQL queries for MySQL2 2021-09-12 23:42:30 -04:00
GhzGarage 95d4d6d287 ⚠️⚠️ ghmatti ditch ⚠️⚠️ 2021-09-11 21:26:56 -05:00
David ec06475c1e Update player.lua
Changed to "Your inventory is too heavy!"
2021-09-08 15:01:48 +02:00
David 3800de1267 Notify if inventory is full 2021-09-02 23:46:11 +02:00
Bear 6b4bbc0572 fix gang menu recruiting does not have notify
SetGang must return true/false the gangmenu resource depends on this to give notifications
2021-08-30 21:02:04 -05:00
Taso 0e68bbf1b5 feat(server/player): PlayerLoaded event for third party handling
Third party resources may need access to created Player instance on join, emit 'QBCore:Server:PlayerLoaded' with ref
2021-08-21 17:48:24 -04:00
vanillaa 7510227dbe clean 2021-08-17 09:26:38 +03:00
GhzGarage 784527b164 Save an empty inventory 2021-08-13 20:08:23 -05:00
BerkieBb 5520eb9fe1 Translate 2021-08-12 16:22:55 +02:00
BerkieBb c837315388 Fix remove money phone notifications 2021-08-12 16:20:10 +02:00
Kakarot e923e632f1 Merge pull request #116 from vanillla1/patch-5
remove qbus
2021-08-09 15:03:08 -05:00
Kakarot 55f76e1faa Merge pull request #115 from bashenga/patch-1
phone bank notify only for remove bank balance
2021-08-09 15:02:41 -05:00
vanillaa b3d3b9e17e remove qbus 2021-08-09 03:21:27 +03:00
bashenga f79161ee95 phone bank notify only for remove bank balance
Fix of showing phone bank notify when removing cash from characters; Phone bank notify will be shown If moneytype is bank.
2021-08-08 20:08:51 +03:00
SW1FT d5ba129d86 Ignore missing items
Fixes https://github.com/qbcore-framework/qb-inventory/issues/49
2021-08-06 19:46:14 +01:00
GhzGarage c69d9e775a Gang Grades 2021-08-05 18:47:37 -05:00
GhzGarage 92774c6d64 Fix Duping 2021-08-03 21:50:40 -05:00
GhzGarage 2722215aba Remove QBCore.Functions.ExecuteSql 2021-08-03 19:22:06 -05:00
BerkieBb e238051efa Renamed function 2021-07-30 21:05:01 +02:00
BerkieBb b875760309 Spacing 2021-07-10 11:42:53 +02:00
BerkieBb 6a7d564a2c Remove unused tables/queries 2021-07-10 11:42:19 +02:00
GhzGarage d08f88f10c Remove Deprecated Feature 2021-07-08 19:59:58 -05:00
GhzGarage 0603076be3 ⚠️⚠️ Steam Ditch ⚠️⚠️ 2021-07-08 19:54:57 -05:00
GhzGarage b2ec7ae041 Remove Optional Tables 2021-07-07 19:55:00 -05:00
GhzGarage 1ed8c63cdb Player Update 2021-06-28 18:24:44 -05:00
GhzGarage 1a2ff548ab SQL 2021-06-28 16:46:58 -05:00
GhzGarage 59a4fb2fcd Test SQL 2021-06-28 16:41:38 -05:00
GhzGarage 200ace10af TEST SQL 2021-06-28 16:19:23 -05:00
GhzGarage af5c2f9d71 Stupid, Stupid, Stupid 2021-06-27 17:52:24 -05:00