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

one shop only works instead others #26

Open
Eviltjuuh opened this issue Jan 9, 2023 · 1 comment
Open

one shop only works instead others #26

Eviltjuuh opened this issue Jan 9, 2023 · 1 comment

Comments

@Eviltjuuh
Copy link

ive add in config.lua under
config.shops = {

more vector3 coords for more shops in order to be used but only the first one will work...
how can i fix that more shops can be used?

see my config file

`Config = {}

Config.AllTattooList = json.decode(LoadResourceFile(GetCurrentResourceName(), 'AllTattoos.json'))
Config.TattooCats = {
{"ZONE_HEAD", "Hoofd", {vec(0.0, 0.7, 0.7), vec(0.7, 0.0, 0.7), vec(0.0, -0.7, 0.7), vec(-0.7, 0.0, 0.7)}, vec(0.0, 0.0, 0.5)},
{"ZONE_LEFT_LEG", "Linker Been", {vec(-0.2, 0.7, -0.7), vec(-0.7, 0.0, -0.7), vec(-0.2, -0.7, -0.7)}, vec(-0.2, 0.0, -0.6)},
{"ZONE_LEFT_ARM", "Linker Arm", {vec(-0.4, 0.5, 0.2), vec(-0.7, 0.0, 0.2), vec(-0.4, -0.5, 0.2)}, vec(-0.2, 0.0, 0.2)},
{"ZONE_RIGHT_LEG", "Rechter Been", {vec(0.2, 0.7, -0.7), vec(0.7, 0.0, -0.7), vec(0.2, -0.7, -0.7)}, vec(0.2, 0.0, -0.6)},
{"ZONE_TORSO", "Borst", {vec(0.0, 0.7, 0.2), vec(0.0, -0.7, 0.2)}, vec(0.0, 0.0, 0.2)},
{"ZONE_RIGHT_ARM", "Rechter Arm", {vec(0.4, 0.5, 0.2), vec(0.7, 0.0, 0.2), vec(0.4, -0.5, 0.2)}, vec(0.2, 0.0, 0.2)},
}

Config.Shops = {
vector3(1322.02, -1654.53, 52.28),
vector3(-1155.1, -1427.76, 4.96),
vector3(322.1, 180.4, 103.5),
vector3(-586.05, -600.71, 41.43),
vector3(-3170.0, 1075.0, 20.8),
vector3(1864.6, 3747.7, 33.0),
vector3(-293.7, 6200.0, 31.4)
}

if not IsDuplicityVersion() then
Config.interiorIds = {}
for k, v in ipairs(Config.Shops) do
Config.interiorIds[#Config.interiorIds + 1] = GetInteriorAtCoords(v)
end
end
`

@Gawls
Copy link

Gawls commented Mar 15, 2023

This has to do with GetInteriorAtCoords(v) returning the wrong ID for the vector3 coordinates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants