(10c) STG Nintendo Switch

posted 29-08-2022 12:05 4.672 views 49 replies 10 Credits
replies (9)
NivK
288 Posts
9,698 Credits
Feb 2022 Since
#41
i

frekesh,
IS ESX NOT QBCORE .
[ script:stg_switch] Error loading script main/server.lua in resource stg_switch: @stg_switch/main/server.lua:3: attempt to inde...

pretty sure you can change in config to esx not used it for long time [its standalone][/its][/attachment]
NivK
288 Posts
9,698 Credits
Feb 2022 Since
#42

frekesh,
IS ESX NOT QBCORE .
[ script:stg_switch] Error loading script main/server.lua in resource stg_switch: @stg_switch/main/server.lua:3: attempt to inde...


Change the server side:

from

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

ESX.RegisterUsableItem('switch', function(source)
TriggerClientEvent('stg_switch:use', source)
end)

to

QBCore = exports['qb-core']:GetCoreObject()

QBCore.Functions.CreateUseableItem("switch", function(source)
TriggerClientEvent("stg_switch:use", source)
end)[/attachment]
grmxreaper64
334 Posts
397 Credits
Jun 2023 Since
#43
nice, thanks bro much appreciated.
Suzume
35 Posts
1,721 Credits
Aug 2023 Since
#45
ist doch das was eh nicht funktioniert und überall angeboten wird sie schön im Inventar aus aber mehr auch nicht.
RyanRon
86 Posts
108 Credits
Jul 2023 Since
#46
thanks bro very ery godo
ryanbaby
496 Posts
42 Credits
Dec 2022 Since
#48
cảm ơn anh trai rất nhiều

You must be logged in to reply

Login Register