Commit Graph

107 Commits

Author SHA1 Message Date
Kakarot 2c20ffba03 Merge pull request #274 from LV-Soft/main
Fix always "on duty" at login.
2021-10-30 17:07:05 -06:00
AJ a8c7317970 feat(server): Only get paid while on Duty 2021-10-28 04:10:21 -04:00
Kakarot 570129bfd3 chore(oxmysql): Replace fetch 2021-10-24 11:18:52 -06:00
Kakarot 226d38690f Merge pull request #279 from roobr/patch-1
🐛 - Fixed Optin Function
2021-10-20 06:18:31 -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
Robert O'Brien 57583c2f4a Fixed Optin Function
Changed "return true" to "return retval" 

as If you have permissions it would always return true even if you had opted out
2021-10-19 02:49:08 +11: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
Taso a335196d10 feat(server/functions): Add GetQBPlayers() fn
A wrapper that returns an array of QB Player instances. Mainly to provide a better solution to the GetPlayers() -> GetPlayer pattern seen everywhere.
2021-09-27 16:42:32 -04:00
Mojito-Fivem 04729ccaaa refactor(debug): Replace clunky table print with Avarian's 2021-09-27 16:33:46 +01: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
GhzGarage f07fbbcf81 Optimize chat suggestions
Original PR from @TassieRPCx

Just removed table.insert for performance
2021-09-25 01:00:45 -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 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
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
Kakarot ff7a6d4cee Merge pull request #175 from Tastyfish/hunger
Configurable hunger and thirst rate.
2021-09-08 23:43:10 -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
tastyfish 6cce66c001 Configurable hunger and thirst rate. 2021-09-01 04:07:14 -04: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
AJ 6d6efc88ed fix: HasItem always returning true 2021-08-29 12:35:40 -04:00
GhzGarage d8ce109422 Gang Command 2021-08-27 13:19:39 -05:00
Kakarot 7f8ff6009c Merge pull request #159 from Developer-Bear/patch-1
clean up /job ..
2021-08-27 13:18:53 -05:00
BerkieBb b069f71fcc Fix items in separate slot not being recognized 2021-08-27 18:55:05 +02:00
Bear 31a870f99a clean up /job .. 2021-08-26 18:29:07 -05:00
BerkieBb 9a2ec19673 Merge pull request #153 from vanillla1/patch-12
add duty for /job
2021-08-26 23:12:53 +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
vanillaa 88fdf90cb0 beautifier 2021-08-26 23:05:47 +03:00
vanillaa c827e5b27a add .. fix 2021-08-24 23:29:58 +03:00
vanillaa 374f97e6e3 add duty for /job 2021-08-23 19:27:06 +03: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
Kakarot 545e029e84 Merge pull request #141 from izMystic/patch-4
job -> gang
2021-08-17 21:26:45 -05:00
izMystic 2468a2a1ec job -> gang 2021-08-17 16:49:58 -04:00
vanillaa 7510227dbe clean 2021-08-17 09:26:38 +03:00
BerkieBb d2386910b8 Check distance first instead of admin to seperate admin ooc and proximity 2021-08-14 15:37:20 +02:00
GhzGarage 784527b164 Save an empty inventory 2021-08-13 20:08:23 -05:00
BerkieBb 848ea348e7 Fix proximity showing when you are the sender and admin 2021-08-14 01:47:38 +02:00
BerkieBb d11556f116 Change message for admins 2021-08-14 01:44:41 +02:00
BerkieBb f579284bc4 Fix entity 2021-08-14 00:01:20 +02:00
BerkieBb 6e01194a81 Fix distance and double message for admins 2021-08-13 23:33:30 +02: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
BerkieBb bb9cac69ed Remove unnecessary checks 2021-08-12 15:58:11 +02:00
Kakarot e923e632f1 Merge pull request #116 from vanillla1/patch-5
remove qbus
2021-08-09 15:03:08 -05:00