Commit Graph

67 Commits

Author SHA1 Message Date
Niunisas 52cb62c3b2 Fix HasItem check if amount is provided and item not found (#741)
* fix(server/events): amount checking fix

* fix(client/functions): item checking fix
2022-06-30 20:20:45 +02:00
Kakarot 3f04db2df0 Update events.lua 2022-06-16 11:45:32 -05:00
ItsANoBrainer 7daf9f121a Merge branch 'main' into ClientCallbacks 2022-06-15 21:56:46 -04:00
Kakarot 3808b8dc0d Merge branch 'main' into patch-1 2022-06-15 17:29:47 -07:00
Kakarot e8dd5941f4 Prevent error 2022-06-15 15:03:06 -07:00
QBLes 3c7f28f0b4 Updated to Events.lua
To allow backwards compatibility, this update Broke many scripts.
2022-06-06 17:49:25 +10:00
BerkieBb af3a564abd fix(server/events): QBCore:HasItem callback
Fixed the wrong return value of the check when a table is passed and added back the string indexed table amount check
2022-05-19 17:13:37 +02:00
Idris Dev eeafbd0405 fix: removed extra space in concatentation. 2022-05-19 09:53:16 +10:00
Tom Osborne 99d78988dc Merge branch 'main' into patch-1 2022-05-18 19:44:56 +01:00
TheiLLeniumStudios e484ea0d48 Improve logic for HasItem 2022-05-13 06:16:21 +00:00
Tom Osborne 34c1988a9b Added 'reason' to playerDropped log
Added the reason given by the playerDropped event to the qb-logs discord embed message. Formatted on next line.
2022-05-12 19:18:31 +01:00
TheiLLeniumStudios c2807c8b37 Clean up logic for HasItem to fix the linting warning 2022-05-06 15:42:27 +00:00
TheiLLeniumStudios fe9dae0543 Change back to compound operators 2022-05-06 13:56:21 +00:00
ItsANoBrainer 46ba99291c [Feature] Client Callbacks
Creates support for utilization of Client Callbacks.
2022-05-04 21:18:38 -04:00
TheiLLeniumStudios db11c7dcec Fix linting issues 2022-05-04 08:08:29 +00:00
Tony 9d1ebbad16 forgor the string.format 2022-04-13 23:12:19 +02:00
Matas 8ec1eb4b32 Remove unneeded bracket 2022-04-13 14:59:44 +02:00
Kakarot 58b6762ab6 Merge pull request #579 from TonybynMp4/TonybynMp4-Translations
Add Joining Server Translations
2022-04-13 05:31:20 -07:00
Kakarot 62dd12a4d9 Update callcommand permission check 2022-04-10 23:00:42 -05:00
Idris 429966cdd7 chore: removed bloated chatMessage code. 2022-04-05 13:57:16 +10:00
Idris aab215334f feat: Added ChatEvent handler to server/events.lua 2022-04-02 18:51:47 +11:00
Kakarot ccbc6b216d Remove job check 2022-03-30 17:25:20 -05:00
Kakarot 3bb1023654 WIP permission system 2022-03-28 01:24:40 -05:00
Tony 98b1d10504 Typo 2022-03-24 16:59:51 +01:00
Tony 8265bf1720 Update events.lua 2022-03-24 16:54:50 +01:00
BerkieBb 32d32e78fc fix(server/events): add kickall 2022-03-01 20:25:14 +01:00
BerkieBb 20635c389d feat(server/events): closed server check, whitelist functionality and optional connectqueue config 2022-03-01 19:41:05 +01:00
BerkieBb 31888996ab feat!: ace permission system 2022-02-24 21:58:49 +01:00
BerkieBb e43fac3568 fix(server/playerdrop): bucket table reference 2022-02-19 14:45:09 +01:00
BerkieBb e61cc26322 style(server/events): indentation 2022-02-18 15:21:48 +01:00
BerkieBb edc914835d feat(events/join): add duplicate license check config 2022-01-18 13:59:36 +01:00
Kakarot d786a3cd07 Locale/oxmysql
MUST UPDATE OXMYSQL TO 1.9 OR HIGHER
2022-01-10 01:52:59 -06:00
Stable ba67673b07 Fix Nil player_buckets if player leave 2021-12-20 15:48:17 +07:00
Kakarot 54300267a0 Merge pull request #358 from Mitroxs/main
Introduction to Routingbuckets
2021-12-19 20:04:34 -06:00
Jagen0 cebd4e5e47 Unused TriggerClientEvent 2021-12-05 12:31:40 +03:00
Mitroxs b9712a0fe5 Introduction to Routingbuckets 2021-12-03 17:35:32 +01: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
GhzGarage f2414d0275 fix(server/commands.lua/events.lua): Perms
- Wrong native was used for checking ace perms which allowed all to use them. Should be resolved.
2021-09-25 18:04:35 -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
SamShanks1 64f34af3c8 Sets all players routing bucket to 0 2021-09-20 14:15:35 +01: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
GhzGarage a99f51fddf Merge branch 'main' of https://github.com/qbcore-framework/qb-core into main 2021-09-08 23:47:17 -05:00
GhzGarage e59cb33ad1 Update drop event 2021-09-08 23:47:10 -05:00
tastyfish 6cce66c001 Configurable hunger and thirst rate. 2021-09-01 04:07:14 -04:00
AJ 6d6efc88ed fix: HasItem always returning true 2021-08-29 12:35:40 -04:00
BerkieBb b069f71fcc Fix items in separate slot not being recognized 2021-08-27 18:55:05 +02:00
BerkieBb d62a5ee9e9 Spacing went fucked 2021-08-26 23:02:39 +02:00
BerkieBb a01af9e199 feat(events/hasitem): Add amount argument to check for item amount and optimize it slightly 2021-08-26 23:01:29 +02:00