I got it working by chaining the start of the function
Citizen.CreateThread(function()
while true do
local sleep = 100
local ped = PlayerPedId()
local distance = #(Locations['vangrob_start'] - GetEntityCoords(ped))
if distance <= 20 then
Hello, I get an error in qb-core when starting the robbery. On the server, I don’t have either qb-target or ox_target, how can I solve it? It tells me what I need from ox_target
No, I assume it had something to do with ESX retrieving player name snippet. However, you can still modify the webhook to show only the Steam name instead of the in-game name.