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() RegisterNetEvent('player:useCraftingTable') AddEventHandler('player:useCraftingTable', function() RegisterNetEvent('player:useCraftingTable', function() local playerPed = PlayerPedId() local coordsP = GetOffsetFromEntityInWorldCoords(playerPed,0.0...
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['qbx-core']:GetCoreObject() local houseowneridentifier = {} local houseownercid = {} local housekeyholders = {} @@ -82,7 +81,7 @@ lib.addCommand("createhouse", { restricted = 'group.admin' }, function(source, args, raw) local src = source local Player ...
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....
function QBCore.Functions.GetClosestObject(source, coords) local ped = GetPlayerPed(source) local objects = GetAllObjects() local closestDistance, closestObject = -1, -1 if coords then coords = type(coords) == 'table' and vector3(coords.x, coords.y, coords.z) or coords end ...