Commit Graph

36 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
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
ItsANoBrainer 7daf9f121a Merge branch 'main' into ClientCallbacks 2022-06-15 21:56:46 -04:00
nzkfc a48e11de86 Forces cars to spawn clean
Will ensure cars spawn cleaned instead of random levels of dirt.
2022-06-10 22:10:44 +12: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
Mycroft d295fdc2ac Merge branch 'main' into main 2022-04-06 19:02:19 +01:00
FekyDEV 9ca5196c24 Deletes the vehicle if the user is already in it 2022-03-24 17:32:47 +01:00
Kakarot 52ac1b3b33 Pull #550 2022-03-22 22:59:53 -05:00
Kakarot 9c818ecd02 Update natives 2022-03-22 22:52:27 -05:00
BerkieBb d1e20143b1 Merge branch 'dev' into dev 2022-03-01 20:08:59 +01:00
BerkieBb 1319c57009 chore(client/events): pvp naming 2022-03-01 19:43:16 +01:00
Idris Dev a76a651379 feat (vehicles): Updated Missing Vehicle Properties
[Update] Missing Vehicle Properties
2022-03-01 18:20:48 +11:00
BerkieBb f50136802f fix(client/events): shared update multiple not updating string keys 2022-02-26 16:23:12 +01:00
Mycroft c787ba66f4 Feat(events): Better TPM Event 2022-02-24 01:27:22 +00:00
ItsANoBrainer dec696a843 Use SetVehicleFuelLevel Native
Use SetVehicleFuelLevel on  QBCore:Command:SpawnVehicle Event
2022-02-19 13:11:28 -05:00
ItsANoBrainer 6ed74c6392 Remove LegacyFuel usage 2022-02-19 12:56:01 -05:00
BerkieBb c615159c28 style(events): indentation 2022-02-18 10:13:08 +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
ItsANoBrainer f7ef019d26 [Update] Missing Vehicle Properties
Added proper support for missing or unfinished vehicle property saving/getting:

- neons enabled/disabled
- tire health
- tire burst state
- tire burst completely
- oil level
- wheel size
- wheel width
- headlight color
- interior color
- modkit 17, 19, 21, 47, 49
- livery roof
- tankHealth

- Set LegacyFuel on setting fuel level
2022-01-27 14:32:14 -05:00
Mitroxs acc435a46a Typo 2021-12-02 23:06:33 +01:00
Mitroxs 6ee16d2262 Introduces PvP toggle: ft command 2021-12-02 23:02:30 +01:00
Mitroxs 8f0e4438b6 Introduces toggle option for PVP 2021-12-01 20:04:07 +01:00
Kakarot 7f4b3ecd9f New plate function 2021-11-08 18:00:58 -06:00
Kakarot 8a19f0163d Fix /ooc & add /me 2021-11-01 00:44:38 -06:00
Taso a5ebf4b9ce chore(styling): ensure consistent indentation & define editorconfig 2021-10-13 21:54:57 -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
BerkieBb 1279c941d4 Remove unused event 2021-08-13 23:33:47 +02:00
GhzGarage 4d4feeed04 Change coord grabbing back to client 2021-07-07 17:59:44 -05:00
GhzGarage e5ffe58b38 ESX Licensing 2021-07-06 16:04:18 -05:00
BerkieBb 59ebd81f04 Remove client side position saving 2021-06-21 14:05:45 +02:00
LoveFistRP 67c24d46ff Fix TP 2021-04-26 08:32:21 -07:00
LoveFistRP e202407211 Needs tested 2021-04-24 15:12:04 -07:00
LoveFistRP c80bd0331b Infinity Compatible TP 2021-04-23 15:08:50 -07:00
GhzGarage 36a139cc09 easier file management 2021-04-08 19:11:32 -05:00