Commit Graph

147 Commits

Author SHA1 Message Date
David Malchin ce216ad676 🎨 Rename locales and remove notify translation type 2022-08-21 23:48:45 +03:00
ChatDisabled c6403fdc4b client/events.lua 2022-08-21 18:28:17 +02:00
Spudgun 7b33f25210 update: common functions and weapon type info 2022-08-20 21:07:42 +12:00
David Malchin ee92e7f436 👕 Remove usage of source in client script 2022-08-19 22:51:05 +03: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
SuperDaniel 2120ce506d Update loops.lua (#749)
Correction of typographical error.

Co-authored-by: BerkieBb <82737367+BerkieBb@users.noreply.github.com>
2022-07-24 00:10:56 +03:00
NetOut 38ed80fed2 Fixed isnetworked (#764)
With the above way, the condition was always true because (false or true) is true or (nil or true) is true.

With this change it is fixed.
2022-07-23 16:01:23 +03: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
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 4fc5e46d0b fix(client/functions): object amount parameter 2022-06-23 21:40:29 +02:00
Kakarot 5949d83cc1 Merge branch 'main' into patch-1 2022-06-18 14:01:13 -05:00
Jonas Suter f9161afe1a fixed wrong type 2022-06-18 09:51:36 +02:00
BerkieBb 483f14d66a feat(client/functions): client side hasitem check 2022-06-17 01:09:50 +02: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
iLLeniumStudios 53d2e0cbf9 Create test_file.lua 2022-05-03 13:03:55 +02:00
BerkieBb 00dba8864d chore(client/functions): remove QBCore.Functions.CreateBlip
- This function has an issue with some references of blips and the usage is not very user friendly, no need for this because local functions are better
2022-04-30 22:41:53 +02:00
Kakarot b73014a0aa Merge pull request #624 from HAMz-Project/patch-1
Add utility LoadAnimSet
2022-04-13 05:45:48 -07:00
Kakarot 4b50e3af11 Merge pull request #548 from Mycroft-Studios/main
Feat(events): Better TPM Event
2022-04-13 05:28:59 -07:00
Kakarot f604967d0a Merge pull request #607 from ARSSANTO/main
Neon color saving issue solved
2022-04-13 05:27:55 -07:00
Ilham Wicaksono 646c916b81 Add utility LoadAnimSet 2022-04-08 04:57:59 +07:00
Mycroft d295fdc2ac Merge branch 'main' into main 2022-04-06 19:02:19 +01:00
Idris Dev 857e891020 feat: Deletes user vehicle when trying to spawn a new one.
when the user spawns the car, it erases the previous one he was in
2022-04-03 14:04:56 +10:00
Atikur Rahaman Santo bf0b3eef65 Neon color saving issue solved 2022-03-31 01:28:59 +06:00
ItsANoBrainer 52dc610c6c [Fix] Livery Mod Saving
- Fixed bug where livery mod would not save if it was set to default
2022-03-28 20:28:01 -04:00
FekyDEV 9ca5196c24 Deletes the vehicle if the user is already in it 2022-03-24 17:32:47 +01:00
Kakarot d0ea8571e3 Pull #521 2022-03-22 23:03:49 -05: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 8efd4266a5 fix(client/functions): error when progressbar is not started 2022-03-13 21:42:23 +01:00
BerkieBb e63d9f744d fix(client/functions): undefined variable 2022-03-13 20:44:17 +01:00
BerkieBb 4cf4030ad3 fix(client/functions): undefined variable
Co-authored-by: ItsANoBrainer <itsanobrainergg@protonmail.com>
2022-03-12 12:26:42 +01:00
BerkieBb 815ff542ac fix(client/functions): notify text type 2022-03-01 21:10:38 +01:00
BerkieBb 3da18e61ea chore(client/functions): remove unused variable 2022-03-01 20:50:40 +01:00
BerkieBb cc0ed41653 fix(client/functions): blip creation log and dubble if statement 2022-03-01 20:50:21 +01:00
BerkieBb 64b5ec4885 fix(client/functions): blip creation 2022-03-01 20:41:55 +01: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
BerkieBb 0ba5d9cb40 refactor!: cleanup and some features 2022-03-01 18:54:18 +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
BerkieBb 31888996ab feat!: ace permission system 2022-02-24 21:58:49 +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 cc43734a3c Use SetVehicleFuelLevel Native
Use SetVehicleFuelLevel on  QBCore.Functions.SpawnVehicle
2022-02-19 13:11:26 -05:00
ItsANoBrainer 66ca5a7bb7 Removed Legacyfuel usage 2022-02-19 12:56:44 -05:00
ItsANoBrainer 6ed74c6392 Remove LegacyFuel usage 2022-02-19 12:56:01 -05:00