Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] #257

Open
lenix-x opened this issue Dec 23, 2024 · 0 comments
Open

[BUG] #257

lenix-x opened this issue Dec 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@lenix-x
Copy link

lenix-x commented Dec 23, 2024

Describe the bug
no describe needed just the getoffset command is returning an error

Screenshots
image

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)

@lenix-x lenix-x added the bug Something isn't working label Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant