Commit Graph

1504 Commits

Author SHA1 Message Date
Kakarot be1e161fe7 Merge pull request #1100 from Qwerty1Verified/patch-3
Fix: Set job boss value to grade value
2024-05-05 11:17:23 -05:00
Joel 20fe7e471c Fix: Set job boss value to grade value
Updates the job table's `isboss` value based on the grade
2024-05-05 09:25:03 +01:00
Kakarot 06f92b657c Update player data format & queries 2024-05-01 02:25:54 -05:00
EinS4ckZwiebeln 868600197d Optimizations 2024-03-28 12:56:32 +01:00
AdrianCeku 7bdcfccac8 Fixed bug where player.Functions.HasItem would execute QBCore.Functions.HasItem but not return the value 2024-02-27 20:34:45 +01:00
Kakarot 5c60c94197 Allow defining icon
- Adds warning class
2024-02-17 06:13:47 -06:00
Kakarot 40df11027b Description for txAdmin 2024-02-11 17:37:25 -06:00
Kakarot a4543646b4 Merge pull request #1062 from bfivem/main
refactor: small optimization
2024-02-10 17:41:33 -05:00
Kakarot 0259c72e0d Merge pull request #1076 from tofudeadeye/patch-1
feat/locations: Add vanilla game mlo interiors
2024-02-10 17:34:28 -05:00
Kakarot ac8634b207 Merge pull request #1077 from GR-Scripts/main
Update vehicles.lua
2024-02-10 17:34:10 -05:00
Kakarot 668126efeb Merge pull request #1078 from jigglyblunt/main
Update items.lua
2024-02-10 17:32:07 -05:00
Kakarot 0cedfcffe5 Merge pull request #1083 from mjvanhaastert/patch-3
LookAtEntity
2024-02-10 17:27:09 -05:00
Man1C b485fe0a0d LookAtEntity
The QBCore.Functions.LookAtEntity function in Lua makes a player's character turn to face a specified entity in the game. It checks if the entity exists and if the input parameters are valid. It then calculates the direction to the entity and gradually adjusts the player's heading to match this direction. The function stops either when the player is facing the entity or when the specified timeout is reached.
2024-02-10 22:24:55 +00:00
Kakarot b653eb769c Merge pull request #1055 from SirOMGitsYOU/patch-4
Added new DLC Cars b3095 / mp2023_02
2024-02-10 17:17:17 -05:00
Kakarot 4051abc091 Merge pull request #1082 from mjvanhaastert/patch-2
Update functions.lua - PlayAnim
2024-02-10 17:13:41 -05:00
Man1C b4c295f6ba Update functions.lua
forgot to remove the comment for local invoked = GetInvokingResource() and remove the hardcore variable
2024-02-10 22:03:12 +00:00
Man1C 3f33e3b09a Update functions.lua - PlayAnim
The runningAnim function is designed to play a specific animation for a player's ped (character) in FiveM. Here's a detailed breakdown of what the function does:

The function takes four parameters: animDict (the name of the animation dictionary), animName (the name of the animation within the dictionary), duration (the duration of the animation in milliseconds), and upperbodyOnly (a boolean indicating whether the animation should only affect the upper body of the ped).

It starts by creating a new promise, animPromise, which will be used to handle the asynchronous nature of loading and playing the animation.

The function then checks if animDict and animName are strings. If not, it rejects the promise with an error message and returns.

It checks if the animation dictionary exists. If not, it rejects the promise with an error message and returns.

It sets the animation flags based on the upperbodyOnly parameter. If upperbodyOnly is true, the flags are set to 16, otherwise, they are set to 0. If the duration is -1 (indicating the animation should loop indefinitely), the flags are set to 49.

It gets the player's ped and the current game time.

It enters a loop where it requests the animation dictionary and waits until it's loaded. If the dictionary isn't loaded within 5 seconds, it rejects the promise with an error message and returns.

Once the animation dictionary is loaded, it plays the animation on the player's ped using TaskPlayAnim.

It waits for a short time to allow the animation to start, then gets the duration of the animation using GetAnimDuration.

If the animation duration is 0 (indicating the animation doesn't exist), it rejects the promise with an error message and returns.

It calculates the full duration of the animation in milliseconds and sets the wait time to the minimum of the provided duration and the full duration.

It waits for the duration of the animation, then removes the animation dictionary.

Finally, it resolves the promise with the current time, indicating when the animation concluded.
2024-02-10 21:37:03 +00:00
Kakarot 3d8cc5924a Merge pull request #1079 from FjamZoo/patch-3
Feat: Add statebag for instances
2024-02-08 12:27:19 -05:00
FjamZoo d7cc3b5884 Feat: Add statebag for instances 2024-01-30 04:41:07 +01:00
JigglyBlunt f3217abd6a Update items.lua
Update with new qb-jewelery to fix inventory related issues
2024-01-27 22:12:38 -07:00
GR-Scripts eca1c61d31 Update vehicles.lua 2024-01-27 06:53:32 +01:00
tofudeadeye 8421f10a2d feat/teleports: Add vanilla game mlo interiors 2024-01-23 00:06:26 +11:00
Kakarot cdd1502f01 Money reasons 2024-01-15 00:31:52 -06:00
Kakarot 1d0a9b35e0 Merge pull request #1072 from AGCGTA/main
japanese translation
2024-01-14 03:20:56 -05:00
azutake e4c0e4f5f2 japanese translation 2024-01-14 11:24:31 +09:00
Kakarot 4efc515fab Update support for rgb xenon 2024-01-08 01:20:58 -06:00
MoskalykA fb4cc3e113 refactor: small optimization 2023-12-21 20:17:32 +01:00
Peter 6f59e63587 Added new DLC Cars b3095 / mp2023_02
Update vehicles.lua

- Added physically obtainable cars in this updated
- Opted to leave out drift variants, All variants can be found here ( https://gtacars.net/?filter_dlc=mp2023_02&page=1&q=Drift&sort=_relevance ) if they need to be added in the future.
2023-12-15 13:50:00 +00:00
Kakarot b132f2963e Remove old bank cards, add new 2023-11-23 11:17:05 -06:00
Kakarot 554ae36ec1 Update export 2023-11-23 11:12:34 -06:00
Kakarot a8e756dd91 Merge pull request #1039 from Sh3ldar/main
Update events.lua
2023-11-16 21:59:15 -05:00
Kakarot 80680f6f92 Merge pull request #1037 from djraymond1/main
Format items.lua
2023-11-16 21:58:58 -05:00
Sh3ldar 5c29cacf32 Update events.lua
translation fix
2023-11-15 12:31:00 +01:00
gamer_raymond_ 4b12cd8dcc Update items.lua 2023-11-15 02:27:03 +01:00
Kakarot d7323ba147 fxdk handling + naming + duplicate license 2023-11-13 03:28:14 -06:00
Kakarot a866b1a049 Mech item 2023-11-11 11:23:36 -06:00
Kakarot 4bfd78c747 Optional update, adds type 2023-11-11 11:23:19 -06:00
Kakarot 27e4d82b28 Merge pull request #1031 from Swellington-Soares/main
refactor: update GetIdentifier to use new native
2023-11-09 21:29:54 -05:00
Kakarot 37976edc22 Util commands
Delete all vehicles, peds or objects known to the server
2023-11-08 04:40:47 -06:00
Kakarot 4149582c44 Remove unused metadata 2023-11-08 02:22:37 -06:00
Kakarot 5f78b3da99 Rename without hyphen 2023-11-03 09:45:07 -05:00
Kakarot a73e878487 Weapon attachment rework 2023-11-03 09:40:35 -05:00
Swellington Soares de1931911d refactor: update GetIdentifier to use new native 2023-10-28 03:51:39 -03:00
Kakarot 4e184ba1c8 extensions 2023-10-21 13:42:47 -05:00
Kakarot 9fa03fd907 Mech job v3 prep 2023-10-07 04:18:37 -05:00
Kakarot 208910f03c Mech job v3 prep 2023-10-03 07:28:06 -05:00
Kakarot fa5bf97689 Merge pull request #988 from hakos47/patch-2
fix shared update
2023-10-01 04:10:17 -05:00
Kakarot 136f6e572f Merge branch 'main' into patch-2 2023-09-30 04:20:41 -05:00
Kakarot 709867c2ce QB Prefix on player connect 2023-09-30 03:48:08 -05:00
Hakos 641ea95814 fix source 2023-09-30 00:42:29 +00:00