Commit Graph

98 Commits

Author SHA1 Message Date
Kakarot a73e878487 Weapon attachment rework 2023-11-03 09:40:35 -05:00
Hakos 641ea95814 fix source 2023-09-30 00:42:29 +00:00
hakos 8ea6644270 update shared at player connection 2023-09-28 12:32:57 +02:00
EinS4ckZwieblen dde2f788d3 chore(server/events): remove redundant vehicle spawning 2023-06-22 09:13:35 +02:00
FjamZoo 99a90ebd5e feat(server/events): Trigger server event on player Duty update 2023-05-17 15:57:10 +02:00
Zerio 8d5a0800ab Merge branch 'main' into main 2022-12-20 18:56:38 +01:00
KamuiKody c79a7b907a add baseevents back (#898) 2022-12-19 22:29:18 +01:00
Zerio 95de86d2e1 Merge branch 'qbcore-framework:main' into main 2022-12-17 01:18:57 +01:00
Zerio b057ef0395 Remove deprecated events 2022-12-17 01:18:16 +01:00
Zerio 091bcd2c3e Remove unnused & vulnerable event 2022-12-17 01:17:02 +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
Chris Sinclair 312f24d245 Bypass for loading QBCore in FxDK (#792)
FxDK does not include license identifiers by default and thus breaks scripts that utilize those. Without this you will get the "No valid Rockstar license" error when connecting. This fix was not my own I found it in the post linked below and tested myself.

https://forum.cfx.re/t/connection-rejected-by-server-fxdk/2504365/5

Co-authored-by: Kakarot <57848836+GhzGarage@users.noreply.github.com>
Co-authored-by: Stan <96954031+tom-osborne@users.noreply.github.com>
Co-authored-by: Zerio <54480523+Z3rio@users.noreply.github.com>
2022-12-11 13:43:10 +01:00
KamuiKody 5635ffbf04 Merge branch 'qbcore-framework:main' into main 2022-10-14 02:01:07 +00:00
David Malchin bd30889c1c Improve comments 2022-10-08 03:53:25 +03:00
David Malchin fd86efbe1b Raise server-side error on database timeout 2022-10-08 03:52:59 +03:00
David Malchin 67ef3741b7 Add clearer messages and handle database errors on player connecting 2022-09-30 02:06:04 +03:00
KamuiKody 8386143cd7 Framework Optimization
for optimization of other resources.
2022-09-04 22:51:27 -04:00
Kakarot a734211478 Update events.lua 2022-08-26 09:23:41 -05:00
Kakarot 156182dd93 Update events.lua 2022-08-26 08:49:22 -05:00
David Malchin ce216ad676 🎨 Rename locales and remove notify translation type 2022-08-21 23:48:45 +03:00
ChatDisabled 6ee58f9017 server/events.lua 2022-08-21 18:34:22 +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
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
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
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
Kakarot 3f04db2df0 Update events.lua 2022-06-16 11:45:32 -05:00
ItsANoBrainer 7daf9f121a Merge branch 'main' into ClientCallbacks 2022-06-15 21:56:46 -04:00
Kakarot 3808b8dc0d Merge branch 'main' into patch-1 2022-06-15 17:29:47 -07:00
Kakarot e8dd5941f4 Prevent error 2022-06-15 15:03:06 -07:00
QBLes 3c7f28f0b4 Updated to Events.lua
To allow backwards compatibility, this update Broke many scripts.
2022-06-06 17:49:25 +10:00
BerkieBb af3a564abd fix(server/events): QBCore:HasItem callback
Fixed the wrong return value of the check when a table is passed and added back the string indexed table amount check
2022-05-19 17:13:37 +02:00
Idris Dev eeafbd0405 fix: removed extra space in concatentation. 2022-05-19 09:53:16 +10:00
Tom Osborne 99d78988dc Merge branch 'main' into patch-1 2022-05-18 19:44:56 +01:00
TheiLLeniumStudios e484ea0d48 Improve logic for HasItem 2022-05-13 06:16:21 +00:00
Tom Osborne 34c1988a9b Added 'reason' to playerDropped log
Added the reason given by the playerDropped event to the qb-logs discord embed message. Formatted on next line.
2022-05-12 19:18:31 +01:00
TheiLLeniumStudios c2807c8b37 Clean up logic for HasItem to fix the linting warning 2022-05-06 15:42:27 +00: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
Tony 9d1ebbad16 forgor the string.format 2022-04-13 23:12:19 +02:00
Matas 8ec1eb4b32 Remove unneeded bracket 2022-04-13 14:59:44 +02:00
Kakarot 58b6762ab6 Merge pull request #579 from TonybynMp4/TonybynMp4-Translations
Add Joining Server Translations
2022-04-13 05:31:20 -07:00
Kakarot 62dd12a4d9 Update callcommand permission check 2022-04-10 23:00:42 -05:00