• 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 ♡♡

ESX Rainmads Six Heist Scripts (5 Viewers)

crose

Well-known member
Aug 21, 2021
207
324
63
Credits
9,159
Code:
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
 

Users who are viewing this thread

  • 9i.8
Top