Jump to content

Unpack table expected got nil problem


Karuzo

Recommended Posts

Hey guys,

i'm workin on a gamemode atm but i got stuck at the house system.

So my problem is that i'm unpacking the interior positions but unpack returns me an error that he expected a table but got nil.

So here's my script:

InteriorPosi = {  
    [1] = {223.0538482666, 1287.3552246094, 1082.140625}, 
} 
--and so on  
  
local x, y, z = unpack(InteriorPosi[int]) 
local houseIntPickup = createPickup(x, y, z, 3, 1318, 100) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...