Jump to content

Need help!


Mike269

Recommended Posts

Hello guys I'm working on my spawn selection and cuz I'm using host I'm also using ingame script editor to make it easy, but there's a error, it says like: line 5: unexpected simbol near '['

thanks!<3

local spawnGUI = { } 
local data =  
{ 
    [ "Weed Slingers" ] = { { "WS Probie", "WS HQ" }, { { [1]=1, [5]=1, [24]=300, [27]=350, [28]=500, [30]=600, [34]=60, [41]=5000} }, { [1]=1, [5]=1, [24]=300, [27]=350, [28]=500, [30]=600, [34]=60, [41]=5000} }, { {231}, {33} }, { {566, -1764, 5}, { 566, -1764, 5} }, { { "WS Probie", "Weed Slingers" }, { "WS HQ", "WS HQ" } } }, 
    [ "Criminals" ] = { { "Arms Dealer" }, { { [1]=1, [31]=500} }, { {231} }, { {404, 1301, 15} }, { { "Arms Dealer", "Criminal" } } },  
} 
local data2 =  
{ 
    { 'Weed Slingers', "WS Probie", "WS HQ" }, 
    { 'Criminals', 'Arms Dealer' }, 
} 
local restriction =  
{ 
    ["Weed Slingers"] = { { "WS Probie", "gang", "Weed_Slingers" }, { "WS HQ", "acl", "WS HQ" } }, 
    ["Criminals"] = { { "Arms Dealer", "none" } }, 
} 

Link to comment

Try this:

local spawnGUI = { } 
local data = 
{ 
    [ "Weed Slingers" ] = {  
        { "WS Probie", "WS HQ" },  
        {  
            { [1]=1, [5]=1, [24]=300, [27]=350, [28]=500, [30]=600, [34]=60, [41]=5000}  
        },  
         
        { [1]=1, [5]=1, [24]=300, [27]=350, [28]=500, [30]=600, [34]=60, [41]=5000},  
         
        { {231}, {33} },  
         
        {  
            {566, -1764, 5},  
            { 566, -1764, 5}  
        },  
         
        {  
            { "WS Probie", "Weed Slingers" },  
            { "WS HQ", "WS HQ" }  
        }  
    }, 
     
    [ "Criminals" ] = {  
        { "Arms Dealer" },  
        {  
            { [1]=1, [31]=500}  
        },  
         
        {  
            {231}  
        },  
         
        {  
            {404, 1301, 15}  
        },  
         
        {  
            { "Arms Dealer", "Criminal" }  
        }  
    } 
} 
  
local data2 = 
{ 
    { 'Weed Slingers', "WS Probie", "WS HQ" }, 
    { 'Criminals', 'Arms Dealer' }, 
} 
local restriction = 
{ 
    ["Weed Slingers"] = { { "WS Probie", "gang", "Weed_Slingers" }, { "WS HQ", "acl", "WS HQ" } }, 
    ["Criminals"] = { { "Arms Dealer", "none" } }, 
} 

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...