Jump to content

original mta door


triplesnake

Recommended Posts

Posted

You can't move a GTA:SA Map door or whatever, they're unable to be moved/deleted.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted (edited)

addCommandHandler is just a way of executing a function, it's not the function to open it.

addCommandHandler("open", 
function (thePlayer, cmd, gateID) 
     setGarageOpen(tonumber(gateID), true) 
     outputChatBox("You have opened the garage ".. tostring(gateID),thePlayer,0,255,0) 
end) 

Then you can do /open

Edited by Guest

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

You put that in a .lua file and create it's meta.xml, and then type the command with the ID.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

so to make it close too i make it like this

addCommandHandler("open",

function (thePlayer, cmd, gateID)

setGarageOpen(tonumber(gateID), true)

outputChatBox("You have opened the garage ".. tostring(gateID),thePlayer,0,255,0)

end)

addCommandHandler("close",

function (thePlayer, cmd, gateID)

setGarageOpen(tonumber(gateID), false)

outputChatBox("You have closed the garage ".. tostring(gateID),thePlayer,0,255,0)

end)

right?

Posted

Yes, that should work.

P.S: Use the LUA tags in the forum ;).

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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