Jump to content

How to create an Item?


Recommended Posts

Lol, if you are talking about any item or object. Use:

createObject 

An example:

addCommandHandler("createbox", 
function() 
local x, y, z = getElementPosition(localPlayer) 
createObject(1271, x, y, z, 0, 0, 0, false) 
outputChatBox("Box created!", 0, 255, 0) 
end 
) 

More information about this function can be read here: www.wiki.multitheftauto.com/wiki/createObject

This creates a box on player's current position if player types /createbox.

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