Commit Graph

297 Commits

Author SHA1 Message Date
Robert O'Brien 57583c2f4a Fixed Optin Function
Changed "return true" to "return retval" 

as If you have permissions it would always return true even if you had opted out
2021-10-19 02:49:08 +11:00
Kakarot f4be9aa749 Merge pull request #276 from alp1x/patch-1
Update README.md | for docs links
2021-10-17 09:31:14 -06:00
uyuyorum {um} dd267e9f53 Update README.md 2021-10-17 11:14:37 +03:00
Kakarot e59a644845 Merge pull request #256 from Mojito-Fivem/fix/GetClosestX
fix(client/functions): GetClosestX type checking
2021-10-16 10:31:22 -06:00
Mojito-Fivem c37bc775c6 chore(client/functions): Convert tabs to spaces 2021-10-14 11:58:24 +01:00
Mojito-Fivem 835147fffc Merge branch 'qbcore-framework-main' into fix/GetClosestX 2021-10-14 11:56:17 +01:00
Mojito-Fivem f7a5f53ab0 chore(client/functions): Merge fix 2021-10-14 11:55:16 +01:00
Kakarot dd3cf07513 Merge pull request #268 from TasoOneAsia/chore/style-standards
A Couple Repo Chores
2021-10-13 20:29:17 -06:00
Taso dacf1160dd chore: ignore IDE generated project folders 2021-10-13 21:55:32 -04:00
Taso a5ebf4b9ce chore(styling): ensure consistent indentation & define editorconfig 2021-10-13 21:54:57 -04:00
Kakarot da8da214e4 Update utils.js 2021-10-13 20:42:39 -05:00
Kakarot c82fbbd2fe Merge pull request #267 from TasoOneAsia/fix/gh-265
fix(ui/notify): fix wrapper definition for fetchNui
2021-10-13 19:42:20 -06:00
Taso 28ba599019 fix(ui/notify): fix wrapper definition for fetchApi 2021-10-13 21:41:22 -04:00
GhzGarage 1552fe9206 hotfix(utils.js): Resource Name 2021-10-13 20:24:56 -05:00
Kakarot 6d9162e511 Globbing 2021-10-13 19:33:43 -05:00
Kakarot 0fb076f07c Typo 2021-10-13 19:30:39 -05:00
Kakarot dddfa6b719 Merge pull request #265 from TasoOneAsia/refactor/notify-nui
refactor(ui/notify): Cleanup internal code & new config options
2021-10-13 18:25:34 -06: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
Kakarot 57e895de19 Merge pull request #237 from evanillaa/patch-19
add new weapon gta default
2021-10-12 11:03:45 -06: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
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
ev.vanillaa d23e0995f3 fix " to ' 2021-09-28 18:26:38 +03:00
ev.vanillaa f6f49165da add new weapon gta default
weapon_smg_mk2 https://wiki.rage.mp/index.php?title=File:Smg-mk2-icon.png
weapon_assaultrifle_mk2 https://wiki.rage.mp/index.php?title=File:Assault-rifle-mk2-icon.png
weapon_carbinerifle_mk2 https://wiki.rage.mp/index.php?title=File:Carbine-rifle-mk2-icon.png
weapon_revolver_mk2 https://wiki.rage.mp/index.php?title=File:Heavy-revolver-mk2-icon.png
weapon_doubleaction https://wiki.rage.mp/index.php?title=File:Double-action-revolver-icon.png

https://ibb.co/qNmzsKC
2021-09-28 18:18:13 +03:00
Kakarot 8a1181171c Update functions.lua 2021-09-28 07:33:08 -05:00
Kakarot 1ce5d0e48e Merge pull request #227 from Eralpozcan/patch-4
fix closestObject/closestVehicle coords
2021-09-28 06:19:37 -06:00
Kakarot 5ea1114751 Merge pull request #232 from TasoOneAsia/patch-1
feat(server/functions): Add GetQBPlayers() fn
2021-09-27 15:05:50 -06:00
Taso a335196d10 feat(server/functions): Add GetQBPlayers() fn
A wrapper that returns an array of QB Player instances. Mainly to provide a better solution to the GetPlayers() -> GetPlayer pattern seen everywhere.
2021-09-27 16:42:32 -04:00
Eralp 567289f0e0 Post-check fix
Post-check fix . Fixes after the check by @AvarianKnight
2021-09-27 23:24:05 +03:00
Kakarot adc1e9512d Merge pull request #229 from Mojito-Fivem/main
refactor(debug): Replace clunky table print with Avarian's
2021-09-27 12:13:07 -06:00
Mojito-Fivem 04729ccaaa refactor(debug): Replace clunky table print with Avarian's 2021-09-27 16:33:46 +01: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
GhzGarage 7591ec6f59 Merge branch 'main' of https://github.com/qbcore-framework/qb-core into main 2021-09-25 18:04:37 -05: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
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
GhzGarage f07fbbcf81 Optimize chat suggestions
Original PR from @TassieRPCx

Just removed table.insert for performance
2021-09-25 01:00:45 -05:00
Kakarot 2b5e9929ca Update qbcore.sql 2021-09-25 00:02:50 -05:00
GhzGarage cfc4d863a3 Template 2021-09-24 23:57:49 -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
Kakarot e683b991c6 Merge pull request #206 from SamShanks1/main
Sets all players routing bucket to 0
2021-09-20 16:36:38 -06:00
SamShanks1 64f34af3c8 Sets all players routing bucket to 0 2021-09-20 14:15:35 +01:00
Newtonzz 7e1d19873e Create LICENSE 2021-09-14 23:20:11 +02:00
Kakarot 1bf411eb19 Merge pull request #190 from zfbx/main
SQL2 error fix
2021-09-13 02:08:33 -05:00
Tony 2d2a33b1be SQL2 error fix 2021-09-13 03:05:03 -04:00