Jump to content

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


Rouzbeh

Recommended Posts

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

Link to comment

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

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