sumariello Posted August 7, 2012 Posted August 7, 2012 Hi, are already 2 hours I'm trying to create a gate, however, go nn. I did the lua file and I put the coordinates. can you tell me how to do it please?
Tails Posted August 7, 2012 Posted August 7, 2012 I am still a noobee myself, but I think you'll have to use the createObject function. https://wiki.multitheftauto.com/wiki/CreateObject
Tete omar Posted August 7, 2012 Posted August 7, 2012 try these createObject -- create the object moveObject -- and move it
Tete omar Posted August 7, 2012 Posted August 7, 2012 use notepad ++ better for lua http://notepad-plus-plus.org/download/v6.1.5.html and copy your code and post it here not a picture
sumariello Posted August 7, 2012 Author Posted August 7, 2012 but can you tell me what I missed here?
sumariello Posted August 7, 2012 Author Posted August 7, 2012 I made a mod from this site and I modified it by following the mod https://community.multitheftauto.com/ind ... ils&id=812
Tete omar Posted August 7, 2012 Posted August 7, 2012 I made a mod from this site and I modified it by following the modhttps://community.multitheftauto.com/ind ... ils&id=812 mhm what's wrong then ?
Tete omar Posted August 7, 2012 Posted August 7, 2012 Dear sumariello post your code or tell us what's wrong !?
sumariello Posted August 7, 2012 Author Posted August 7, 2012 I do not know what the problem. This is why I'm asking
Agon Posted August 8, 2012 Posted August 8, 2012 1) try posting your code here 2) try using /debugscript 3 3) post the error. So scripters can help you..
sumariello Posted August 8, 2012 Author Posted August 8, 2012 I found a problem ... (the one pictured in red)
albers14 Posted August 8, 2012 Posted August 8, 2012 help pls T_T if getElementModel(thePlayer) == 287 then You just need to set a "then" after the getElementModel stuff. So it would look like this: function openbasegates(thePlayer) if getElementModel(thePlayer) == 287 then -- you code moveobject stuff end end addEventHandler('onColShapeHit', basecol, openbasegates) function closebasegates(thePlayer) if getElementModel(thePlayer) == 287 then -- you code moveobject stuff end end addEventHandler('onColShapeLeave', basecol, closebasegates)
sumariello Posted August 8, 2012 Author Posted August 8, 2012 and if I want to let only members of a clan as I do? I would put a code to enter
albers14 Posted August 8, 2012 Posted August 8, 2012 and if I want to let only members of a clan as I do? I would put a code to enter The clan is based on ACL or setElementData?
sumariello Posted August 9, 2012 Author Posted August 9, 2012 and if I do it with open / gate openers and / chiudicancello, how should I do?
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now