Commit Graph

1368 Commits

Author SHA1 Message Date
Kakarot 2bb81b6423 Merge pull request #1104 from t0r3tto/main
fix: annoying typo
2024-05-20 20:42:27 -04:00
Kakarot f32ab3a76c Merge branch 'main' into main 2024-05-20 20:42:15 -04:00
Kakarot ae62f6e509 Merge branch 'main' of https://github.com/qbcore-framework/qb-core 2024-05-20 19:40:25 -05:00
Kakarot 285c20fb0c Remove combinable 2024-05-20 19:40:23 -05:00
Toretto 8a9849b803 Merge branch 'main' into main 2024-05-21 00:16:35 +01:00
Kakarot 819496685e Merge pull request #1106 from Qwerty1Verified/main
Add missing DE locales
2024-05-20 16:15:57 -04:00
Joel d228dcc74e Add missing DE locales 2024-05-20 19:17:47 +01:00
Kakarot 435c5335a3 Inventory Update 2024-05-20 05:28:38 -05:00
t0retto 07099e64a5 fix: annoying typo 2024-05-18 22:29:51 +01:00
Kakarot 8ddbf0555a Merge pull request #1097 from EinS4ckZwiebeln/optimizations
Collection of optimizations
2024-05-11 19:20:28 -04:00
Kakarot 7a0d4830cc Merge branch 'main' into optimizations 2024-05-11 19:12:32 -04:00
Kakarot 1901240e08 Merge pull request #1091 from AdrianCeku/patch-1
Fixed missing return statement in Player.Functions.HasItem
2024-05-11 19:08:07 -04:00
Kakarot 1ac602bbcc Merge branch 'main' into patch-1 2024-05-11 18:58:10 -04:00
Kakarot c068817f17 Merge branch 'main' into optimizations 2024-05-11 18:57:53 -04:00
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