Commit Graph

51 Commits

Author SHA1 Message Date
BerkieBb 4f3401ff71 fix(server/functions): paycheck loop 2022-02-28 14:26:45 +01:00
BerkieBb 61a5da33ad fix(functions/permissions): has permission check 2022-02-24 22:32:52 +01:00
BerkieBb 31888996ab feat!: ace permission system 2022-02-24 21:58:49 +01:00
BerkieBb 328fa108f8 tweak(buckets): small improvement of bucket handler 2022-02-19 14:44:34 +01:00
BerkieBb 3d3562a296 Merge branch 'dev' into dev 2022-02-19 12:54:19 +01:00
MeMo 707a43d4b8 fix (server/functions): BanTime fix. 2022-02-19 17:56:02 +11:00
BerkieBb e9a6d4acd0 fix(server/functions): getplayer variable 2022-02-18 19:35:10 +01:00
BerkieBb 38534b73f0 style(server/functions): indentation 2022-02-18 19:09:35 +01:00
Kakarot d786a3cd07 Locale/oxmysql
MUST UPDATE OXMYSQL TO 1.9 OR HIGHER
2022-01-10 01:52:59 -06:00
BerkieBb 632edc96c2 chore(paychecks): Add back removed code 2022-01-07 03:03:23 +01:00
BerkieBb 5d9e52ce55 fix(paychecks): Get account the right way 2022-01-07 02:59:42 +01:00
bmf1418 9a251cd160 Add paychecks from society account
Added config option for paychecks to be taken from society account when the player is employed by a society.
2022-01-01 15:18:32 -06:00
Kakarot 876def5ca5 Merge pull request #375 from GameMango36/main
feat(paychecks): Jobs Off Duty Payment Option
2021-12-19 20:07:40 -06:00
MiddleSkillz d56bdd2b98 feat(paychecks): Jobs Off Duty Payment Option 2021-12-16 19:52:00 -07:00
Mitroxs 88820c80f1 typo ⁉️ 2021-12-03 22:09:28 +01:00
Mitroxs a3a763c86a Get function for the bucket objects 2021-12-03 19:06:40 +01:00
Mitroxs 6d553436ec Merge branch 'main' of https://github.com/Mitroxs/qb-core 2021-12-03 18:25:10 +01:00
Mitroxs 315f70600d Deattach from QBcore object 2021-12-03 18:25:00 +01:00
Mitroxs 0c55486312 Update server/functions.lua
Co-authored-by: Taso <taso@projecterror.dev>
2021-12-03 18:18:14 +01:00
Mitroxs b9712a0fe5 Introduction to Routingbuckets 2021-12-03 17:35:32 +01:00
jnccloud 649420b82f Index is incorrect when players disconnect
It causes the index count to be skewed, and in turn causes an error in the thread and it never runs again until restart. Using the pairs alleviated this in a test environment.
2021-11-29 12:43:22 -05:00
Kakarot e0bbb72b6f Should fix paycheck problems 2021-11-28 15:54:15 -06:00
Mojito-Fivem b3346527be refactor(paycheckloop): Localise payment and format string 2021-11-08 17:37:33 +00:00
Mojito-Fivem aac822402d fix(refactor/paycheckloop): Send to players source 2021-11-08 17:36:11 +00:00
Mojito-Fivem 3d47bd8589 refacotr(server/functions): Optimise PaycheckLoop function 2021-11-08 17:27:14 +00:00
Mojito-Fivem 21d85a63ec chore(server/functions): Add Comments for GetDuty functions 2021-11-07 22:47:39 +00:00
Mojito-Fivem 85819bddbf feat(server/functions): GetDutyCount 2021-11-07 22:46:00 +00:00
Mojito-Fivem 2236163d5c feat(server/functions): GetPlayersOnDuty
Co-authored-by: Solositeous <36283056+Solositeous@users.noreply.github.com>
2021-11-07 22:44:39 +00:00
Kakarot 9a1f1ab565 Remove table.insert 2021-11-02 23:16:52 -06:00
Kakarot 8a19f0163d Fix /ooc & add /me 2021-11-01 00:44:38 -06:00
Mojito-Fivem 9fd5e75302 refactor(maths): move maths function to shared.lua 2021-10-31 21:38:45 +00:00
Kakarot 005e311df1 Update functions.lua 2021-10-31 09:47:29 -05:00
Kakarot 0b83012b54 Merge pull request #246 from IdrisDose/main
feat (Functions/Math): Added Precision Rounding so that people can round to nearest decimal efficiently.
2021-10-31 07:50:27 -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
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
Taso a5ebf4b9ce chore(styling): ensure consistent indentation & define editorconfig 2021-10-13 21:54:57 -04:00
Idris Dose 2b6edb0ac3 feat (Functions/Math): Added Precision Rounding so that people can round to nearest decimal efficiently. 2021-10-01 20:58:13 +10: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
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
GhzGarage 59e2e5cb29 Ban Fix 2021-08-03 22:14:27 -05:00
GhzGarage 2722215aba Remove QBCore.Functions.ExecuteSql 2021-08-03 19:22:06 -05:00
Developer-Bear 842c7c9301 fix ban function always returns false
global variables where not writable from inside the export function for some reason
2021-08-03 12:43:52 -05:00
Developer-Bear 4400413233 disallow connection of a rockstar license that is already in the server 2021-07-26 22:15:51 -05:00
GhzGarage 0603076be3 ⚠️⚠️ Steam Ditch ⚠️⚠️ 2021-07-08 19:54:57 -05:00
izMystic 4937463efb translate 2021-07-03 04:46:09 -04:00
BerkieBb 962cd4a997 Add server function for getting entity coords 2021-06-21 14:06:58 +02:00