Commit Graph

91 Commits

Author SHA1 Message Date
David Malchin 7fab401ed2 Fix Styling (#758)
* style: ensure consistent indentation

* style: add spacing

* style: add newlines

* style: simplify html

* fix: update javascript indent size in contribution guidelines
2022-07-18 23:45:46 +03:00
Kakarot 82ac1bec32 Revert phone number changes 2022-06-24 17:11:15 -05:00
Kakarot 1be8447c2b Merge branch 'main' into main 2022-06-15 18:14:30 -07:00
Kakarot 53190a87ab Merge branch 'main' into main 2022-06-15 18:00:39 -07:00
mmoftah97 7c57f6a817 Address PR Comments. 2022-06-15 19:08:46 -04:00
mmoftah97 acb313c34d FEAT: Allow getting offline Player object 2022-06-15 19:08:46 -04:00
uShifty 88d31270bf fix: Phone number generation
Due to merging the 2 sets of random generated numbers it makes the variable PhoneNumber a string when it should be a number value. I noticed this bug when the framework function QBCore.Functions.GetPlayerByPhone was not working as intended.
2022-06-06 20:05:24 -07:00
Kakarot fbdf566649 MySQL Updates 2022-05-19 00:52:22 -05:00
TheiLLeniumStudios fe9dae0543 Change back to compound operators 2022-05-06 13:56:21 +00:00
TheiLLeniumStudios db11c7dcec Fix linting issues 2022-05-04 08:08:29 +00:00
Lionh34rt 43b107fd4c Update server/player.lua
Co-authored-by: ItsANoBrainer <itsanobrainergg@protonmail.com>
2022-04-22 22:24:15 +02:00
Lionh34rt 56473b4843 Update server/player.lua
Co-authored-by: ItsANoBrainer <itsanobrainergg@protonmail.com>
2022-04-22 22:24:11 +02:00
LwkyLion 04994137c1 Update player.lua
Deleting character causes an issue because the table "player_boats" was still trying to be deleted and no such table existed.
2022-04-08 11:20:40 -07:00
Lionh34rt 1c0e73d6d9 PlayerData.job.isleo 2022-04-04 14:23:43 +02:00
Kakarot dd6c6c4a09 More changes 2022-03-30 01:04:59 -05:00
Kakarot 3bb1023654 WIP permission system 2022-03-28 01:24:40 -05:00
Idris Dev 1dfdb46105 fix (Zap): Fixed user not getting god perms when using Zap Hosting. 2022-03-25 21:35:37 +11:00
BerkieBb b5de979b79 fix(server/player): error on character creation 2022-03-19 11:16:10 +01:00
BerkieBb 73300a2edf Revert "feat (server/player): Added Job update on duty update" - IdrisDose 2022-03-14 23:59:28 +01:00
BerkieBb 93a95e268b tweak(server/player): ping when player was banned
Co-authored-by: ItsANoBrainer <itsanobrainergg@protonmail.com>
2022-03-13 21:18:05 +01:00
ItsANoBrainer 440b4eb01c [Hotfix] Missing Job/Gang found
- If a job or gang isnt found in shared, it will error out and character can not spawn
2022-03-13 16:13:32 -04:00
BerkieBb a063eca8f0 Prevent duplicated phone and account numbers [Scully] 2022-03-12 12:54:29 +01:00
BerkieBb 61a5da33ad fix(functions/permissions): has permission check 2022-02-24 22:32:52 +01:00
BerkieBb c3f114b381 feat(permission/playerdata): system admin permission 2022-02-24 22:13:30 +01:00
BerkieBb 31888996ab feat!: ace permission system 2022-02-24 21:58:49 +01:00
BerkieBb 7901a991cb Merge branch 'dev' into dev 2022-02-23 11:15:20 +01:00
Idris Dev fa99bf0339 feat (main): Pulling main into dev. (#542)
* Update README.md

* Update README.md

* feat (locale/tr): Added turkish locale.

Türkçe Karakter Yer Almakta

* feat (locale/es): Added spanish.

* updated spanish

Sounded weird

* Update es.lua

* feat (locale/lv): Added latvian.

I'm personally a native speaker and I can approve this is correct.

* feat(qb-core/player): Added server-side event onJobUpdate (#516)

Added server-side event onJobUpdate so scripts can listen on server if any player changed their job. It's safer than redirecting client event to server again.

* feat (server/player): Added Job update on duty update (#519)

* Trigger Job Update on Duty Update

* Add server event

Co-authored-by: Kakarot <57848836+GhzGarage@users.noreply.github.com>
Co-authored-by: Muhammed Developer <56224780+muhammed10100@users.noreply.github.com>
Co-authored-by: MonkeyWhisper <82112471+MonkeyWhisper@users.noreply.github.com>
Co-authored-by: Casper <71441748+JajarGaming@users.noreply.github.com>
Co-authored-by: Chaini <28576404+chainiDV@users.noreply.github.com>
Co-authored-by: Brady F <bmf1418@gmail.com>
2022-02-21 15:00:02 +11:00
BerkieBb da676647f2 style(server/player): indentation 2022-02-18 19:09:57 +01:00
Idris ae29c94a40 feat (Shared): Added the ability to dynamically update the shared jobs, items and gangs. 2022-02-13 20:45:49 +11: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