Commit Graph

96 Commits

Author SHA1 Message Date
tom-osborne 7620c1c74a Add documentation (luadoc) to functions 2023-03-01 23:47:21 +00:00
R0adRa93 01e8597f07 [FIX] Security match sql (#925)
* Added PrepForSQL function

performs a check to a string with expected patterns to be matched.

* Bug Fixes

After talking with Stan I realized that it wasn't testing strings so I set it up to ensure data is a string.

I also reworded the event log.
2023-01-18 18:53:38 +01:00
R0adRa93 9878aeaeb2 Added PrepForSQL function (#914)
performs a check to a string with expected patterns to be matched.
2023-01-17 16:01:36 +01:00
Linden bc7555a49c refactor(server/functions): grant principal to player.id
Easier to read and test aces.
2022-09-01 07:32:00 +10:00
BerkieBb 8557e599f0 tweak(server/functions): usableitems are back in the core 2022-08-25 17:42:55 +02:00
Spudgun c61d0b204e tweak: HasPermissions accept both string and table
Enables single and multiple permission checks
2022-08-24 18:57:53 +12:00
BerkieBb 6231dbab6a feat(server/functions): usable item exports 2022-08-20 09:36:08 +02:00
Kakarot 8fffc421bb Merge Dev (#794)
* [Update] Stuff and Things - Fix Exploit

- Update doors on teleport so they don't get stuck (requires my doorlock PR that creates a updateDoors() export
- Support for heading with TeleportToCoords event
- Support for teleporting to location name with /tp and a default file with locations to use
- Remove 'QBCore:Server:AddItem' event (requires PR to other resources that use it)
- Support for an array of items that do the same thing with QBCore.Functions.CreateUsableItem
- Player exists check before removing or adding permission
- Trigger OnPlayerUnload as a server side event too
- Player.Functions.GetMetaData function
- Added reason to money remove logs
- Set dirt level to 0 on /car vehicles

* Export to Event

* Deprecate instead of remove?

* Player+License verification fix

* Update events.lua

* Export change for qb-management

* [Hotfix] Errors after Merge

* [Change] src to source

* Prevent people using /me to troll

This prevents people using that /me troll with the huge font size and different colors.

* Remove DoorUpdate event

* Update client/events.lua

Co-authored-by: BerkieBb <82737367+BerkieBb@users.noreply.github.com>

* Update server/functions.lua

Co-authored-by: BerkieBb <82737367+BerkieBb@users.noreply.github.com>

* Adjustments for BB

* Linting

* fix(server/functions): use indexed variables

Co-authored-by: David Malchin <malchin459@gmail.com>

* chore(server/events): remove unnecessary _

Co-authored-by: David Malchin <malchin459@gmail.com>

* chore(server/events): remove unnecessary _'s

Co-authored-by: David Malchin <malchin459@gmail.com>

* chore(server/events): language

Co-authored-by: David Malchin <malchin459@gmail.com>

* chore(server/events): language

Co-authored-by: David Malchin <malchin459@gmail.com>

* chore(server/events): language

Co-authored-by: David Malchin <malchin459@gmail.com>

* chore(server/events): language

Co-authored-by: David Malchin <malchin459@gmail.com>

* chore(server/player): indentation

Co-authored-by: David Malchin <malchin459@gmail.com>

* [Chore] Remove Money

Removed repetitive code that made zero sense

* Update en.lua

* Update player.lua

* Update player.lua

* Update functions.lua

Co-authored-by: ItsANoBrainer <itsanobrainergg@protonmail.com>
Co-authored-by: Scullyy <51968381+Scullyy@users.noreply.github.com>
Co-authored-by: Idris Dev <IdrisDose@users.noreply.github.com>
Co-authored-by: Idris <idrisdev@gmail.com>
Co-authored-by: BerkieBb <82737367+BerkieBb@users.noreply.github.com>
Co-authored-by: David Malchin <malchin459@gmail.com>
Co-authored-by: Chris Usiak <christopher.usiak@oakland.k12.mi.us>
2022-08-19 11:48:39 -05:00
BerkieBb d88e51ee4f Remove inventory code from the core (#784)
* tweak(config): remove inventory code

* tweak(client/functions): remove inventory code

* cleanup(server/commands): remove inventory command

* cleanup(server/events): remove hasitem callback

* cleanup(server/functions): remove inventory code

* cleanup(server/player): remove inventory code

* feat(server/player): QBCore:Player:SetPlayerData server side

Removed QBCore:Server:PlayerLoaded for PR that will be merged before me that adds it

* feat(server/player): QBCore:Server:OnGangUpdate

* fix(shared/items): remove duplicate snowball

* fix(server/events): warn for exploitable event

* fix(server/functions): startup error

* feat(server/player): some backwards compatibility

* fix(server/events): warn for exploitable event

* feat(server/player): Player.Functions.AddField

* feat(server/exports): SetField and AddField

* fix(server/player): inventory state check
2022-08-19 11:33:38 -05:00
BerkieBb dc087a976c feat(server/functions): QBCore.Functions.Notify (#772)
Co-authored-by: Stan <96954031+tom-osborne@users.noreply.github.com>
2022-08-04 13:25:23 +03:00
Kakarot 6c27291366 Spawning fixes 2022-08-03 20:40:34 -05:00
BerkieBb be6c6211dd tweak(server/functions): use joaat (#768) 2022-07-27 13:36:40 +03:00
BerkieBb 827819d002 Fix optin toggle and add SetPlayerData function to player object (#757)
* feat(server/player): SetPlayerData

* fix(server/functions): toggling optin
2022-07-27 11:07:04 +03:00
Kakarot d8ba9a8152 cb to return, pass source for coords fallback 2022-07-27 01:20:18 -05:00
Kakarot 1b2915a75f Vehicle server-spawning functions/callback 2022-07-22 22:59:01 -05:00
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
BerkieBb c26879a702 fix(server/functions): hasitem single item check 2022-06-30 21:51:33 +02:00
Kakarot 82ac1bec32 Revert phone number changes 2022-06-24 17:11:15 -05:00
BerkieBb 0b2f3c2a4e fix(server/functions): object amount parameter 2022-06-23 21:40:59 +02:00
TheHorizon-Fivem cd20d2b791 phone issue
a fix for the phone issue
https://github.com/qbcore-framework/qb-phone/issues/306 fixed by https://github.com/peppinoita but he didnt make a pull request for it
2022-06-20 19:48:18 +02:00
Kakarot 46f4ea625c Merge branch 'main' into main 2022-06-16 22:58:25 -07:00
Kakarot bb555091ca Update payment when changed in shared 2022-06-17 00:19:17 -05:00
BerkieBb cc0cf6a942 feat(server/functions): server side hasitem check 2022-06-17 01:10:16 +02:00
Kakarot 03d24a3dcb Merge branch 'main' into ClientCallbacks 2022-06-15 20:06:51 -07:00
ItsANoBrainer 7daf9f121a Merge branch 'main' into ClientCallbacks 2022-06-15 21:56:46 -04: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
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
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
Kakarot 3f703a2950 Event to export 2022-04-02 16:01:06 -05:00
Kakarot cddbd0184c Accidental s 2022-03-30 23:02:44 -05:00
Kakarot cf0de3ed35 Merge pull request #594 from GhzGarage/main
WIP Permissions System
2022-03-30 16:31:36 -06:00
Kakarot b04eb3f43a Update to qbcore. 2022-03-30 17:05:07 -05:00
Kakarot dd6c6c4a09 More changes 2022-03-30 01:04:59 -05:00
Kakarot 46a2aae5ce More changes 2022-03-30 00:45:31 -05:00
Kakarot f5e22066fb More changes 2022-03-29 22:33:26 -05:00
Kakarot a528a0b127 More updates 2022-03-29 22:12:00 -05:00
Kakarot cc44840df4 GetPermission function 2022-03-28 21:37:53 -05:00
Molicheu 997e19a9da Rename qb-bossmenu to qb-management 2022-03-28 22:36:38 -04:00
Kakarot 581e7572a0 Remove optin (look into chat channels) 2022-03-28 01:26:25 -05:00
Kakarot 3bb1023654 WIP permission system 2022-03-28 01:24:40 -05:00
BerkieBb 8d9a970aa1 fix(server/functions): old permission check 2022-03-07 18:59:21 +01:00
BerkieBb 3cc48b0767 feat(server/functions): make isWhitelisted usable 2022-03-01 19:40:05 +01:00
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