• We have a new discord! click here to join
    Any faulty links ? Report them in our discord or via our Ticket System!
    We do everything we can to protect the safety of our visitors, if any resource contains malware in any kind of form or obfuscation please report it aswell ♡♡

    Payments via Crypto: Please open a ticket, if you experience any issues, or if you miss your coin as an option in the list we have alot of wallets available.

QBCORE Removed (1 Viewer)

mbeckann

Well-known member
Aug 8, 2022
303
81
28
Credits
688
dlRz8gE_d.webp


RegisterNUICallback('cDataPed', function(nData, cb)
local cData = nData.cData
SetEntityAsMissionEntity(charPed, true, true)
DeleteEntity(charPed)
if cData ~= nil then
print(cData, 1)
if cData ~= nil then
print(cData, 2)
QBCore.Functions.TriggerCallback('ak4y-multicharacter:server:getSkin', function(model, data)
print(cData, 3)
model = model ~= nil and tonumber(model) or false
if model ~= nil then
CreateThread(function()
RequestModel(model)
while not HasModelLoaded(model) do
Wait(0)
end
charPed = CreatePed(2, model, AK4Y.PedCoords.x, AK4Y.PedCoords.y, AK4Y.PedCoords.z - 0.98, AK4Y.PedCoords.w, false, true)
SetPedComponentVariation(charPed, 0, 0, 0, 2)
FreezeEntityPosition(charPed, false)
SetEntityInvincible(charPed, true)
PlaceObjectOnGroundProperly(charPed)
SetBlockingOfNonTemporaryEvents(charPed, true)
data = json.decode(data)
exports['fivem-appearance']:setPedAppearance(charPed, data, true)
end)
else
CreateThread(function()
local randommodels = {
"mp_m_freemode_01",
}
model = joaat(randommodels[math.random(1, #randommodels)])
RequestModel(model)
while not HasModelLoaded(model) do
Wait(0)
end
charPed = CreatePed(2, model, AK4Y.PedCoords.x, AK4Y.PedCoords.y, AK4Y.PedCoords.z - 0.98, AK4Y.PedCoords.w, false, true)
SetPedComponentVariation(charPed, 0, 0, 0, 2)
FreezeEntityPosition(charPed, false)
SetEntityInvincible(charPed, true)
PlaceObjectOnGroundProperly(charPed)
SetBlockingOfNonTemporaryEvents(charPed, true)
end)
end
cb("ok")
end, cData.cData)
else
CreateThread(function()
local ped = "mp_m_freemode_01"
if cData.== "female" then
ped = "mp_f_freemode_01"
end
local model = joaat(ped)
RequestModel(model)
while not HasModelLoaded(model) do
Wait(0)
end
charPed = CreatePed(2, model, AK4Y.PedCoords.x, AK4Y.PedCoords.y, AK4Y.PedCoords.z - 0.98, AK4Y.PedCoords.w, false, true)
SetPedComponentVariation(charPed, 0, 0, 0, 2)
FreezeEntityPosition(charPed, false)
SetEntityInvincible(charPed, true)
PlaceObjectOnGroundProperly(charPed)
SetBlockingOfNonTemporaryEvents(charPed, true)
end)
cb("ok")
end
else
CreateThread(function()
local randommodels = {
"mp_m_freemode_01",
"mp_f_freemode_01",
}
local model = joaat(randommodels[math.random(1, #randommodels)])
RequestModel(model)
while not HasModelLoaded(model) do
Wait(0)
end
charPed = CreatePed(2, model, AK4Y.PedCoords.x, AK4Y.PedCoords.y, AK4Y.PedCoords.z - 0.98, AK4Y.PedCoords.w, false, true)
SetPedComponentVariation(charPed, 0, 0, 0, 2)
FreezeEntityPosition(charPed, false)
SetEntityInvincible(charPed, true)
PlaceObjectOnGroundProperly(charPed)
SetBlockingOfNonTemporaryEvents(charPed, true)
end)
cb("ok")
end
end)

does not carry game clothes
servido
QBCore.Functions.CreateCallback("ak4y-multicharacter:server:getSkin", function(_, cb, cid)
local result = exports.oxmysql:executeSync('SELECT * FROM playerskins WHERE citizenid = ?', {cid, 1})
if result[1] ~= nil then
cb(json.decode(result[1].skin))
else
cb(nil)
end
end)
 

Users who are viewing this thread

Top