Security HUD
System Watchdog
×
Threads Scanned
-- / --
SYS. LOAD --%
AI SHIELD ACTIVE
DMCA Policy
×

📋 DMCA Compliance

This platform and community fully complies with the Digital Millennium Copyright Act (DMCA) and international copyright laws. We take all copyright protection seriously.

🛡️ Copyright Protection

If you believe a posted item belongs to you or violates your copyright, you may file a DMCA takedown request through our official channels. Upon receiving a valid claim, the infringing content will be removed within 24 hours.

What's new
×
Fiveguard

Guide error get sharedobject

Fab9555

Bronze Elite
Joined
Feb 6, 2023
Messages
7
Reaction score
2
Points
146
Location
france
Just add

shared_script '@es_extended/imports.lua'
to your fxmanifest.lua

and then instead of ESX = nil use ESX = exports["es_extended"]:getSharedObject() client and server

enjoy
 

CriziiTV

Member
Joined
May 17, 2023
Messages
5
Reaction score
0
Points
156
Location
Wien
Quelle:

1.)
The import can be used by simply adding this into the fxmanifest.lua:
shared_script '@es_extended/imports.lua'
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
2.) client.lua

delete:

ESX = nil

Citizen.CreateThread(function()
while ESX == nil do
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
Citizen.Wait(0)
end
end)

use this:

ESX = exports["es_extended"]:getSharedObject()

-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
3.) server.lua

delete:


ESX = nil

TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)

use this:

ESX = exports["es_extended"]:getSharedObject()
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------

Now you are done!! :)
 
Top