Commit Graph

69 Commits

Author SHA1 Message Date
Borre e90fa91102 TP with heading support
Added support for the heading argument when using the /tp command.
2025-01-24 19:27:01 +01:00
Kakarot cdd1502f01 Money reasons 2024-01-15 00:31:52 -06:00
Kakarot d7323ba147 fxdk handling + naming + duplicate license 2023-11-13 03:28:14 -06:00
Kakarot 37976edc22 Util commands
Delete all vehicles, peds or objects known to the server
2023-11-08 04:40:47 -06:00
Kakarot a73e878487 Weapon attachment rework 2023-11-03 09:40:35 -05:00
Jellyton 56a44bea37 Update commands.lua 2022-12-27 18:46:47 -08:00
Jellyton ec628fb6c7 Add OOC color to main config file 2022-12-28 02:42:00 +00:00
Jellyton b76160ca1e Fix proximity OOC spelling 2022-12-27 07:40:53 +00:00
David Malchin 6513c55aa5 🎨 Use tables in command locales 2022-08-22 03:46:52 +03:00
David Malchin ce216ad676 🎨 Rename locales and remove notify translation type 2022-08-21 23:48:45 +03:00
ChatDisabled 13f88bf2e8 server/commands.lua + remove dubble locales 2022-08-21 18:33:15 +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
Ethan Johnson 15e37a0c34 Performance, notification, and localization updates to server/commands.lua (#638)
* 🐎 Update ace permissions loop from pairs() to for-i

* Add success notification to `openserver` and `closeserver`

* 🌐 Add missing localization strings for commands

* Add missing comma at end of line

Co-authored-by: Kakarot <57848836+GhzGarage@users.noreply.github.com>
Co-authored-by: BerkieBb <82737367+BerkieBb@users.noreply.github.com>
2022-08-15 08:37:32 +02:00
BerkieBb 87d3636c12 feat(server/commands): multiple permission support and fix argsrequired 2022-06-27 18:10:00 +02:00
Kakarot b43f9cecc9 Merge branch 'main' into patch-1 2022-06-15 17:51:02 -07:00
TheiLLeniumStudios db11c7dcec Fix linting issues 2022-05-04 08:08:29 +00:00
Joel ad57a480b3 fix(clearinv): Player id definition
Fixes playerid from becoming "true" instead of the ID or source
2022-04-23 21:35:09 +01:00
Ethan 75a762f3e8 /me command - Use regex to replace formatting text
Uses regex to replace strings that match `<*>` and `~*~` in the `/me` command.
Regex: https://regex101.com/r/rrNMnx/1
2022-04-13 19:23:45 +12:00
Ethan d5280f32f2 🐎 /me command - Convert pairs() loop to for loop
As per test 9 @ https://springrts.com/wiki/Lua_Performance#TEST_9:_for-loops
2022-04-13 19:06:59 +12:00
Ethan c21cde06f7 🐎 /me command - Check input first 2022-04-13 19:02:18 +12:00
Ethan Johnson 3d4343d420 Add support for commas and integers in the TP command 2022-04-12 23:16:54 +12:00
Kakarot b04eb3f43a Update to qbcore. 2022-03-30 17:05:07 -05:00
Kakarot 2d6159345b Remove 2022-03-30 01:31:36 -05:00
Kakarot eb34e65204 More changes 2022-03-30 01:20:11 -05:00
Kakarot dd6c6c4a09 More changes 2022-03-30 01:04:59 -05:00
Kakarot 46a2aae5ce More changes 2022-03-30 00:45:31 -05:00
Kakarot f5e22066fb More changes 2022-03-29 22:33:26 -05:00
Kakarot a528a0b127 More updates 2022-03-29 22:12:00 -05:00
Kakarot 94476fee2e old compat 2022-03-28 22:00:56 -05:00
Kakarot 3bb1023654 WIP permission system 2022-03-28 01:24:40 -05:00
Kakarot de28c3c9db Update commands.lua 2022-03-22 22:48:36 -05:00
Idris Dev 98c907b9ed chore (typo): QBCore:Notfy -> QBCore:Notify 2022-03-23 14:21:30 +11:00
BerkieBb 5dd1f78af5 fix(server/commands): add kickall 2022-03-01 20:25:35 +01:00
BerkieBb 99f5bdb235 feat(server/commands): open and close server commands 2022-03-01 19:43:50 +01:00
BerkieBb 31888996ab feat!: ace permission system 2022-02-24 21:58:49 +01:00
BerkieBb 25007c1bf4 style(server/events): indentation and ocd 2022-02-18 14:34:40 +01:00
Kakarot d786a3cd07 Locale/oxmysql
MUST UPDATE OXMYSQL TO 1.9 OR HIGHER
2022-01-10 01:52:59 -06:00
Mitroxs 6ee16d2262 Introduces PvP toggle: ft command 2021-12-02 23:02:30 +01:00
Jamie b921b70989 Update commands.lua
Fixed the bug with /me
2021-11-27 00:28:56 +00:00
BerkieBb e6f423fa04 feat(core/ooc): Rename to Proximity OOC to prevent confusion and double OOC messages for admins and gods 2021-11-01 09:53:46 +01: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
GhzGarage f2414d0275 fix(server/commands.lua/events.lua): Perms
- Wrong native was used for checking ace perms which allowed all to use them. Should be resolved.
2021-09-25 18:04:35 -05:00
GhzGarage f07fbbcf81 Optimize chat suggestions
Original PR from @TassieRPCx

Just removed table.insert for performance
2021-09-25 01:00:45 -05: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
GhzGarage d8ce109422 Gang Command 2021-08-27 13:19:39 -05:00
Bear 31a870f99a clean up /job .. 2021-08-26 18:29:07 -05:00
vanillaa 88fdf90cb0 beautifier 2021-08-26 23:05:47 +03:00
vanillaa c827e5b27a add .. fix 2021-08-24 23:29:58 +03:00