mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-09-04 09:13:29 +00:00
⚠️ 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
This commit is contained in:
+4
-2
@@ -1,4 +1,6 @@
|
||||
if GetCurrentResourceName() == 'qb-core' then
|
||||
-- This might eventually be deprecated for the export system
|
||||
|
||||
if GetCurrentResourceName() == 'qb-core' then
|
||||
function GetSharedObject()
|
||||
return QBCore
|
||||
end
|
||||
@@ -6,4 +8,4 @@ if GetCurrentResourceName() == 'qb-core' then
|
||||
exports('GetSharedObject', GetSharedObject)
|
||||
end
|
||||
|
||||
QBCore = exports['qb-core']:GetSharedObject()
|
||||
QBCore = exports['qb-core']:GetSharedObject()
|
||||
Reference in New Issue
Block a user