Commit Graph

170 Commits

Author SHA1 Message Date
Kakarot a73e878487 Weapon attachment rework 2023-11-03 09:40:35 -05:00
hakos 7775667139 fix-lint: client/events.lua:266:63: line contains trailing whitespace 2023-09-28 12:52:53 +02:00
hakos 8ea6644270 update shared at player connection 2023-09-28 12:32:57 +02:00
Kakarot 7314e8453f Natives 2023-09-23 15:35:54 -05:00
Kakarot e1deee88af Merge pull request #918 from DuoTheDev:main
Fix Taking Damage in Last Stand due to Hunger
2023-04-27 17:07:41 -07:00
Kakarot 0ae843856f Merge pull request #935 from LRemp:main
bugfix: force clear vehicle custom colors before applying colors
2023-04-27 16:16:59 -07:00
Kakarot 2588e61e6f Merge branch 'main' into main 2023-04-27 16:12:47 -07:00
Kakarot c1759f85cd Merge branch 'main' of https://github.com/qbcore-framework/qb-core 2023-04-27 17:34:54 -05:00
Kakarot 78bde5070a PR #963 2023-04-27 17:34:51 -05:00
Zerio 4ba2262a27 Improve code readability 2023-03-25 14:19:51 +01:00
Hakos47 6738c06d55 Update functions.lua 2023-03-23 15:02:35 +01:00
Hakos47 50d73ed52b fix lint failed
return material hash , entity hit, surfaceNormal, end coords, hit, and retval
2023-03-23 12:44:34 +01:00
Hakos47 66c88b51e0 GetGroundHash
returns the hash of the terrain you are on. quite useful for planting scripts
2023-03-23 12:29:46 +01:00
Hakos47 15a264c3c9 GetGroundHash
returns the hash of the terrain you are on. quite useful for planting scripts
2023-03-23 12:24:30 +01:00
Mythic 2311af93b4 sets veh as mission entity to use delete native 2023-02-01 09:33:57 -08:00
LRemp 889196adf0 bugfix: force clear vehicle custom colors before applying standart vehicle colors 2023-01-29 17:20:25 +02:00
zwkf 68e64a7bec Merge branch 'main' into main 2023-01-26 02:02:28 +00:00
Charlie e6f5bf5ab6 Remove vehicle keys depdency from core (#920)
Co-authored-by: Zerio <54480523+Z3rio@users.noreply.github.com>
2023-01-18 17:17:15 +01:00
Duo 7f03857fe6 Add check for 'isinlaststand'
Prevents player taking damage from hunger after they are already downed.
2023-01-13 10:52:38 -08:00
KamuiKody c79a7b907a add baseevents back (#898) 2022-12-19 22:29:18 +01:00
R0adRa93 cc64ee38e8 Getting QB-Core ready for qb-jobs (#883)
Co-authored-by: Zerio <54480523+Z3rio@users.noreply.github.com>
2022-12-16 23:38:31 +01:00
KamuiKody ade0652ee2 fix variable 2022-09-04 23:05:02 -04:00
KamuiKody 8386143cd7 Framework Optimization
for optimization of other resources.
2022-09-04 22:51:27 -04:00
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