You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
no describe needed just the getoffset command is returning an error
Screenshots
Additional context
just to let u know that i just installed the latest recipe and straight up to the apartment using the command and 'bOOm'
the code
RegisterCommand('getoffset', function()
local coords = GetEntityCoords(PlayerPedId())
local houseCoords = vector3(
Config.Houses[CurrentHouse].coords.enter.x,
Config.Houses[CurrentHouse].coords.enter.y,
Config.Houses[CurrentHouse].coords.enter.z - Config.MinZOffset
)
if IsInside then
local xdist = houseCoords.x - coords.x
local ydist = houseCoords.y - coords.y
local zdist = houseCoords.z - coords.z
print('X: ' .. xdist)
print('Y: ' .. ydist)
print('Z: ' .. zdist)
end
end)
the error
qb-houses/client/main.lua:1574: attempt to index a nil value (field '?')
re (qb-houses/client/main.lua:1574)
ExecuteCommand (ExecuteCommand.lua:4)
callback (chatcmd/cl_chat.lua:108)
The text was updated successfully, but these errors were encountered:
Describe the bug
no describe needed just the getoffset command is returning an error
Screenshots
Additional context
just to let u know that i just installed the latest recipe and straight up to the apartment using the command and 'bOOm'
the code
RegisterCommand('getoffset', function()
local coords = GetEntityCoords(PlayerPedId())
local houseCoords = vector3(
Config.Houses[CurrentHouse].coords.enter.x,
Config.Houses[CurrentHouse].coords.enter.y,
Config.Houses[CurrentHouse].coords.enter.z - Config.MinZOffset
)
if IsInside then
local xdist = houseCoords.x - coords.x
local ydist = houseCoords.y - coords.y
local zdist = houseCoords.z - coords.z
print('X: ' .. xdist)
print('Y: ' .. ydist)
print('Z: ' .. zdist)
end
end)
the error
qb-houses/client/main.lua:1574: attempt to index a nil value (field '?')
re (qb-houses/client/main.lua:1574)
ExecuteCommand (ExecuteCommand.lua:4)
callback (chatcmd/cl_chat.lua:108)
The text was updated successfully, but these errors were encountered: