Commit Graph

100 Commits

Author SHA1 Message Date
Liam Dormon 12ed1b1799 fix(client/functions): Fixes QBCore.Functions.HasItem 2021-12-17 23:34:29 +00:00
YeahItsHayden 4d4f249ef4 (add): Remove Print + add error trace 2021-12-09 13:58:12 +10:00
YeahItsHayden b7a075127c (add): request anim dict to core 2021-12-08 17:20:21 +10:00
YeahItsHayden 1a7c1d7407 (add): create blip function 2021-12-08 16:19:34 +10:00
Liam Dormon 81b15139c3 feat(client/functions): RGB Colour Support 2021-12-06 20:54:14 +00:00
vanillaa 9928ce12ad cleanup 2021-11-14 12:53:16 +02:00
Kakarot 7f4b3ecd9f New plate function 2021-11-08 18:00:58 -06:00
Mojito-Fivem 20fa745e28 refactor(client/functions): Add local trim function to shared.lua 2021-11-07 11:17:29 +00:00
Mojito-Fivem ec95fef7f5 refactor(client/functions): Remove local rounding function for QBCore.Shared.Round 2021-11-07 11:15:17 +00:00
roobr e15503e04b Add in Shared function for Trimming whitespace in plates
This PR is the foundation for Trimming plates in all resources that reference vehicle plates, this will allow plates with less than 8 Characters to work with QB resources (mechanic and garage mainly), and not return white spaces. For example, the plate "TEST" would return "  TEST  " so when trying to put it back into the garage or add mods to it, it would fail.

For example in qb-garages: TriggerEvent("vehiclekeys:client:SetOwner", QBCore.Functions.GetPlate(veh)) would return "TEST instead of "  TEST  " when using the native.

What I did was replace GetVehicleNumberPlateText( with QBCore.Functions.GetPlate( in all resources that contain the QBCore object.
2021-11-06 00:03:27 +11:00
Mojito-Fivem 9fd5e75302 refactor(maths): move maths function to shared.lua 2021-10-31 21:38:45 +00:00
Kakarot f68437e9ae Update functions.lua 2021-10-31 09:46:58 -05:00
Kakarot 0b83012b54 Merge pull request #246 from IdrisDose/main
feat (Functions/Math): Added Precision Rounding so that people can round to nearest decimal efficiently.
2021-10-31 07:50:27 -06:00
Kakarot dd64f80021 Livery backwards compatibility 2021-10-28 23:49:33 -06:00
Kakarot 06e44a4553 Fix livery not sticking / randomly changing 2021-10-21 11:30:51 -05:00
Mojito-Fivem c37bc775c6 chore(client/functions): Convert tabs to spaces 2021-10-14 11:58:24 +01:00
Mojito-Fivem f7a5f53ab0 chore(client/functions): Merge fix 2021-10-14 11:55:16 +01:00
Taso a5ebf4b9ce chore(styling): ensure consistent indentation & define editorconfig 2021-10-13 21:54:57 -04:00
Taso e719bc6569 refactor(ui/notify): Cleanup internal code & new config options 2021-10-13 20:19:36 -04:00
Mojito-Fivem e0d3a9ea69 refactor(client/functions): Simplify vector check with ternary 2021-10-13 23:01:06 +01:00
Mojito-Fivem 34f03308c2 refactor(client/functions): fix indentation 2021-10-13 22:37:25 +01:00
Mojito-Fivem ca30d45810 fix(client/functions): Additional type checking for vectors 2021-10-07 22:16:03 +01:00
Mojito-Fivem b1ca2926a1 fix(client/functions): GetClosestX type checking 2021-10-07 22:06:49 +01:00
Idris Dose 2b6edb0ac3 feat (Functions/Math): Added Precision Rounding so that people can round to nearest decimal efficiently. 2021-10-01 20:58:13 +10:00
Kakarot be4f57410b feat(html): New Notify System
-Replaces old notification system but is also backwards compatible so no changes necessary
- Now allows for the use of sending a table with text and caption
- Can add as many types of notifications as wanted/needed
- Configure position and icons in app,js (google icons or fontawesome)
2021-09-28 23:39:11 -06:00
Kakarot 8a1181171c Update functions.lua 2021-09-28 07:33:08 -05:00
Eralp 567289f0e0 Post-check fix
Post-check fix . Fixes after the check by @AvarianKnight
2021-09-27 23:24:05 +03:00
Eralp 7bbab4ce65 visual editing
visual editing and fix for new build
2021-09-26 15:49:51 +03:00
Eralp 997f4b00ac fix closestObject/closestVehicle coords
In the previous version we could check the coordinates. In this, we automatically get the coordinate of the player. I hadn't noticed this yesterday when I was testing it. I am attaching this fix. Available in before "Major update" version.
2021-09-26 15:44:51 +03:00
Kakarot 39b55b27fd fix(client/functions.lua): Closest Ped
Scripts like qb-drugs corner selling require finding the closest ped but include a list of peds to ignore, typically your own.
2021-09-25 21:41:06 -06:00
GhzGarage 34c574daf2 fix(server/events/player): Position
Position was not updating on player dropped but was on player save event.
2021-09-25 18:31:28 -05:00
GhzGarage 5555cd6662 feat(client/functions.lua): Distance
Added second return parameter which contains distance
2021-09-25 18:06:52 -05:00
Kakarot ddc396d2c9 fix(qb-core/client/functions.lua): Close Player
There was a mistake when replacing table.insert that caused closest player to not be found
2021-09-25 11:08:40 -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
BerkieBb 057efcbf41 Fix nil value 2021-08-16 14:42:03 +02:00
Bear 772ad40cd4 I goofed 2021-08-04 17:27:20 -05:00
Bear 53f54c1139 beautify 2021-08-04 16:48:02 -05:00
Developer-Bear 1864d03573 fix interior & dash colors not saving, also custom tires (lettering) 2021-08-04 16:30:29 -05:00
GhzGarage 6d723164af ALL MODS SAVE CORRECTLY 2021-08-03 21:33:01 -05:00
Bear f7032bb416 fix duplicate function 2021-08-03 17:22:53 -05:00
Developer-Bear c28f332727 fix neon under glow and tires moke not saving when a vehicle is stored 2021-08-03 13:05:36 -05:00
GhzGarage e5ffe58b38 ESX Licensing 2021-07-06 16:04:18 -05:00
GhzGarage 7f9e91fb61 GetGamePool 2021-06-30 23:14:37 -05:00
GhzGarage d5ab54851e Non-RGB 2021-06-26 22:18:21 -05:00
BerkieBb b3387952c3 Change functions to accept vector4 2021-06-24 11:57:08 +02:00
ᐯIᖇᑌᔕ 1f2950fcdd Fixed Neon color and tyres smoke being not set when pull out car from garage. 2021-06-20 19:51:41 -04:00
ᐯIᖇᑌᔕ c2171649ef fix for Xenon lights color not set when retrieve from the garage
Added new native and fixed a call for a non exist json parameter.
2021-06-19 21:19:48 -04:00
BerkieBb 0ee1186709 Fixed the saving of liveries 2021-06-09 21:50:10 +02:00
LoveFistRP 6ca2e773e5 Enable RGB 2021-04-19 07:52:50 -07:00
GhzGarage 36a139cc09 easier file management 2021-04-08 19:11:32 -05:00