Commit Graph

295 Commits

Author SHA1 Message Date
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
Gürkan 0e07fea92d update player.lua - To fix number check
"GetPlayerByPhone" fixes some players' phone number not matching
2022-08-18 03:10:04 +03:00
Ethan Johnson 15e37a0c34 Performance, notification, and localization updates to server/commands.lua (#638)
* 🐎 Update ace permissions loop from pairs() to for-i

* Add success notification to `openserver` and `closeserver`

* 🌐 Add missing localization strings for commands

* Add missing comma at end of line

Co-authored-by: Kakarot <57848836+GhzGarage@users.noreply.github.com>
Co-authored-by: BerkieBb <82737367+BerkieBb@users.noreply.github.com>
2022-08-15 08:37:32 +02:00
BerkieBb c52e501588 fix(server/player): wrong type 2022-08-10 17:37:29 +02:00
BerkieBb b1e1c11788 fix(server/player): example 2022-08-10 16:14:10 +02:00
BerkieBb 177925f126 feat(server/player): AddPlayerMethod 2022-08-10 15:05:24 +02: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 2eba19a6c8 Merge branch 'main' into remove-connectqueue 2022-07-29 14:04:10 +03: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 81ffd87231 Second vehicle spawn callback 2022-07-25 20:42:46 -05:00
BerkieBb 42bfdbefd8 fix(server/events): remove unused variable 2022-07-23 23:40:46 +03:00
BerkieBb cad6f3a209 tweak(server/events): remove non-existant event trigger 2022-07-23 21:22:20 +03:00
Kakarot 2b0e0c8edc Model check 2022-07-23 02:14:20 -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 b650e9dacc Merge branch 'main' into main 2022-07-09 17:40:10 +02:00
BerkieBb e90962fb4e Merge branch 'main' into main 2022-06-30 21:57:13 +02:00
BerkieBb c26879a702 fix(server/functions): hasitem single item check 2022-06-30 21:51:33 +02:00
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
BerkieBb 87d3636c12 feat(server/commands): multiple permission support and fix argsrequired 2022-06-27 18:10:00 +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 7f5fcc48ec Merge branch 'main' into patch-1 2022-06-16 11:41:07 -07:00
Kakarot 3f04db2df0 Update events.lua 2022-06-16 11:45:32 -05:00
MaximusR9 b726a0cb0c Update exports.lua 2022-06-16 18:43:07 +05:00
MaximusR9 3f838431b5 Merge branch 'main' into patch-1 2022-06-16 05:09:15 -07: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
Kakarot 1be8447c2b Merge branch 'main' into main 2022-06-15 18:14:30 -07:00
Kakarot e4db9203a5 Merge branch 'main' into patch-1 2022-06-15 18:10:16 -07:00
Kakarot 1b795179b7 Merge branch 'main' into patch-1 2022-06-15 18:07:59 -07:00
Kakarot 53190a87ab Merge branch 'main' into main 2022-06-15 18:00:39 -07:00
Kakarot b43f9cecc9 Merge branch 'main' into patch-1 2022-06-15 17:51:02 -07:00
Kakarot 8cb6c676a6 Merge pull request #718 from uShifty/patch-4
fix: Phone number generation
2022-06-15 17:48:43 -07:00
Kakarot fd3591e3ee Merge branch 'main' into patch-1 2022-06-15 17:46:14 -07:00
Kakarot 7794794f3a Merge branch 'main' into main 2022-06-15 17:40:12 -07:00
Kakarot 9d3506f5d0 Merge branch 'main' into main 2022-06-15 17:32:51 -07:00
Kakarot 794020274e Merge branch 'main' into patch-2 2022-06-15 17:29:51 -07:00
Kakarot 3808b8dc0d Merge branch 'main' into patch-1 2022-06-15 17:29:47 -07:00
Kakarot 92eab1feb3 Merge branch 'main' into patch-4 2022-06-15 17:29:18 -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