Commit Graph

113 Commits

Author SHA1 Message Date
Kakarot 28753848dc remove more unneeded functions 2025-06-01 15:42:49 -05:00
Kakarot a437265c68 reset branch 2025-05-10 09:29:59 -05:00
Kakarot e1024cd061 Remove old server files 2025-03-11 23:08:14 -05:00
Zerio dc8fbf04e9 feat: use promises in callbacks + cleanup 2025-01-06 21:31:23 +01:00
Zerio c4bbff6b56 Merge branch 'main' into main 2024-07-15 04:55:14 +02:00
Kasey FItton 78bcabcbfc fix(server/events): fix the typo in the typo
kill me plz
2024-07-12 01:31:33 +01:00
Kasey FItton 7e580eef1d fix(server/events): fix typo 2024-07-12 01:26:37 +01:00
Kasey FItton e1aa208b61 fix(server/functions): return database details correctly 2024-07-12 01:06:48 +01:00
Kasey FItton be3bbb8abf fix(server/events): error handle MySQL.ready 2024-07-12 00:24:17 +01:00
Kasey FItton e39fe89140 feat(server): SQL error handling 2024-07-11 18:53:27 +01:00
Zerio 9fbab7a4e6 fix: remove usable item after resource stop 2024-05-25 21:04:30 +00:00
TehSteel 5936be434a Update events.lua 2024-05-16 23:43:53 +03:00
TehSteel 4dbe320962 Update events.lua 2024-05-16 23:35:25 +03:00
Sh3ldar 5c29cacf32 Update events.lua
translation fix
2023-11-15 12:31:00 +01:00
Kakarot d7323ba147 fxdk handling + naming + duplicate license 2023-11-13 03:28:14 -06:00
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