Jump to content

Tables


Recommended Posts

Posted

Is it possible to create a table using a function like table.create? I looked but I couldn't find anything of the sort, or is there any alternatives?

I want a unique table per player who runs the script.

Any help is appreciated.

Posted

For every house on my server I want a separate table.

So for example, if I wanted to access house with ID 2041 I'd use this houseTable[2041] = { } but I don't want to manually add all of those tables.

Posted
For every house on my server I want a separate table.

So for example, if I wanted to access house with ID 2041 I'd use this houseTable[2041] = { } but I don't want to manually add all of those tables.

I understood you, what about you do that with SQL?

Posted

It needs to be tables, so is there a way? SQL won't help me here because I don't need to store data.

The system is for a robbery system where players can rob a house, and items are randomly generated into the table.

Posted
It needs to be tables, so is there a way? SQL won't help me here because I don't need to store data.

The system is for a robbery system where players can rob a house, and items are randomly generated into the table.

Post part of your code

Posted

It's "OOP" in MTA Lua.

Example:

  
local functions = { 
create = function(var1,var2) 
... 
end, 
delete = function(var1,var2,var3) 
... 
end} 
local created = functions.create(var1,var2) 
  

Posted

Set animation to an empty set and empty animation, i.e

setPedAnimation(localPlayer, "", "") --Of course, replace localPlayer with the ped element who's animation you want to stop 

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