Jump to content

[HELP]Whats is Difference Between CreateObject and <Object>


Rouzbeh

Recommended Posts

Posted

hi, if i understand true, we can add objects in 2 ways , one with CreateObject in Resource and two is in a .map file, so whats is differnce between these? i want make some objects, vehicles and later use them in scripting(like no one can enter that and i need define elements), i confused a little...

Posted

-- you can use it in map file

createObject() -- it's a function

so try to use tables if you want to create many objects.

exmaple:

local objects = { 
-- Object coordination here : model , x , y , z , rx , ry , rz 
} 
  
for i , v in pairs (objects) do  
-- You code here 
end  

Do not yield your back to your enemy, might feel something strange in your ass.

Two things are infinite the universe and human stupidity and i'm not sure about the universe.

UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle

Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators

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