QBCore = exports['qbx-core']:GetCoreObject() IsInside = false ClosestHouse = nil HasHouseKey = false @@ -41,7 +40,7 @@ local isInsiteCharactersTarget = false local function showEntranceHeaderMenu() local options = {} if QBCore.Functions.GetPlayerData().job and QBCore.Functions.GetPla...
local QBCore = exports['qb-core']:GetCoreObject() RegisterNetEvent('player:useCraftingTable') AddEventHandler('player:useCraftingTable', function() RegisterNetEvent('player:useCraftingTable', function() local playerPed = PlayerPedId() local coordsP = GetOffsetFromEntityInWorldCoords(playerPed,0.0...
ESX.Game.GetClosestObject -> None (Can use FiveM native GetClosestObjectOfType) ESX.Game.GetClosestPed -> QBCore.Functions.GetClosestPed ESX.Game.GetClosestPlayer -> QBCore.Functions.GetClosestPlayer ESX.Game.GetClosestVehicle -> QBCore.Functions.GetClosestVehicle ESX.Game.GetObjects -> None (us...
local QBCore = exports["qb-core"]:GetCoreObject() local PlayerData = QBCore.Functions.GetPlayerData() local inChips = false local currentShop, currentData local pedSpawned = false local listen = false local ShopPed = {} local NewZones = {} -- Functions local function createBlips() if ...
local QBCore = exports['qb-core']:GetCoreObject() local currentShop, playerData local pedSpawned = false local listen = false local ShopPed = {} @@ -42,6 +43,8 @@ end local function createPeds() if pedSpawned then return end local defaultTargetIcon = 'fas fa-shopping-cart' local ...
local QBCore = exports['qb-core']:GetCoreObject() RegisterNetEvent('player:useCraftingTable', function(benchType) local playerPed = PlayerPedId() local coordsP = GetOffsetFromEntityInWorldCoords(playerPed, 0.0, 1.0, 1.0) local playerHeading = GetEntityHeading(PlayerPedId()) local itemHeading...
local QBCore = exports["qb-core"]:GetCoreObject() RegisterNetEvent("hospital:server:ambulanceAlert", function(text) local src = source local ped = GetPlayerPed(src) local coords = GetEntityCoords(ped) local players = QBCore.Functions.GetQBPlayers() for _, v in pairs(players) do if v....
Functions.GetPlayerData(cb) @@ -16,42 +36,6 @@ function QBCore.Functions.HasItem(items, amount) return exports['qb-inventory']:HasItem(items, amount) end -- Utility function QBCore.Functions.DrawText(x, y, width, height, scale, r, g, b, a, text) -- Use local function instead ...
Make sure that you're using the correct job type as leo and make sure yourqb-coreis fully updated to the latest version. On shared/config.lua make set Config.Debug = true to test calls as police officer.(ONLY to be used as testing, make sure to disable on live production) ...