Last edited:
Thank you.+rep
Thanks.nice
No problem.Been looking for this for a while.
Gracias
Nice bri iwant to know if it work for qbus[PREVIEW]
https://youtu.be/mujBAqR452Y
RAINMAD Scripts | Scripts
rainmad.tebex.io
[DOWNLOAD]
-=Stripped Content=-
If somebody is willing to convert it for you.Is it possible to get those in QB?
QBCore.Functions.CreateCallback('skillsystem:fetchStatus', function(source, cb)
local Player = QBCore.Functions.GetPlayer(source)
if Player then
exports['ghmattimysql']:execute('SELECT skills FROM players WHERE citizenid = @citizenid', {
['@citizenid'] = Player.PlayerData.citizenid
}, function(status)
if status ~= nil then
cb(json.decode(status))
else
cb(nil)
end
end)
else
cb()
end
end)
ESX.RegisterServerCallback("gamz-skillsystem:fetchStatus", function(source, cb)
local src = source
local user = ESX.GetPlayerFromId(src)
local fetch = [[
SELECT
skills
FROM
users
WHERE
identifier = @identifier
]]
MySQL.Async.fetchScalar(fetch, {
["@identifier"] = user.identifier
}, function(status)
if status ~= nil then
cb(json.decode(status))
else
cb(nil)
end
end)
end)
QBCore.Functions.ExecuteSql()
ESX.ExecuteSql() --(ghmattimysql)
MySQL.Async.execute()
QBCore.Commands.Add()
RegisterCommand()
QBCore.Functions.GetPlayer(src)
ESX.GetPlayerFromId(src)
QBCore.Functions.SpawnVehicle()
QBCore.Functions.GetVehicleProperties()
QBCore.Functions.GetClosestVehicle()
ESX.Game.SpawnVehicle()
ESX.Game.GetVehicleProperties()
ESX.Game.GetClosestVehicle()
QBCore.Functions.GetPlayerData()
ESX.GetPlayerData()
QBCore.Functions.CreateUseableItem()
ESX.RegisterUsableItem()
QBCore.Functions.CreateCallback()
ESX.RegisterServerCallback()
QBCore.Functions.TriggerCallback()
ESX.TriggerServerCallback()
QBCore.Functions.GetPlayer(src)
ESX.GetPlayerFromId(src)
QBCore.Functions.SpawnVehicle()
QBCore.Functions.GetVehicleProperties()
QBCore.Functions.GetClosestVehicle()
ESX.Game.SpawnVehicle()
ESX.Game.GetVehicleProperties()
ESX.Game.GetClosestVehicle()
QBCore.Functions.GetPlayerData()
ESX.GetPlayerData()
QBCore.Functions.CreateUseableItem()
ESX.RegisterUsableItem()
QBCore.Functions.CreateCallback()
ESX.RegisterServerCallback()
QBCore.Functions.TriggerCallback()
ESX.TriggerServerCallback()
QBCore = nil
Citizen.CreateThread(function()
while QBCore == nil do
TriggerEvent('QBCore:GetObject', function(obj) QBCore = obj end)
Citizen.Wait(31)
end
end)
ESX = nil
Citizen.CreateThread(function()
while ESX == nil do
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
Citizen.Wait(31)
end
end)
-----------------------------------------------------------
RegisterNetEvent('QBCore:Client:OnPlayerLoaded')
AddEventHandler('QBCore:Client:OnPlayerLoaded',
RegisterNetEvent('esx:playerLoaded')
AddEventHandler('esx:playerLoaded',
RegisterNetEvent('QBCore:Client:OnJobUpdate')
AddEventHandler('QBCore:Client:OnJobUpdate',
RegisterNetEvent('esx:setJob')
AddEventHandler('esx:setJob',
QBCore.Functions.DrawText3D(1, 1, 1, 'Text')
DrawText3D(1, 1, 1, 'Text')
QBCore.Functions.Notify("Error text", "error")
TriggerEvent('Notification',"Error text")
xPlayer.Functions.GetItemByName
xPlayer.getInventoryItem
xPlayer.Functions.RemoveItem
xPlayer.removeInventoryItem
xPlayer.Functions.AddItem
xPlayer.addInventoryItem
Code above is to convert from ESX to QBUS, maybe you can try it yourself.Is it possible to get those in QB?
It looks fine[PREVIEW]
https://youtu.be/mujBAqR452Y
RAINMAD Scripts | Scripts
rainmad.tebex.io
[DOWNLOAD]
-=Stripped Content=-
Thank you!![PREVIEW]
https://youtu.be/mujBAqR452Y
RAINMAD Scripts | Scripts
rainmad.tebex.io
[DOWNLOAD]
-=Stripped Content=-
[PREVIEW]
https://youtu.be/mujBAqR452Y
RAINMAD Scripts | Scripts
rainmad.tebex.io
[DOWNLOAD]
-=Stripped Content=-