Search the Community
Showing results for tags 'door'.
-
testdoor = createObject(1499, 1580.03149, -1631.73987, 13.38281) bindKey(source, "e", "down", function() local currentFreezeStatus = isElementFrozen ( testdoor ) if currentFreezeStatus then setElementFrozen ( testdoor, not currentFreezeStatus ) outputChatBox("You have closed the door!",255,255,255) else setElementFrozen ( testdoor, currentFreezeStatus ) outputChatBox("You have opened the door!",255,255,255) end end) its showing an error bad argument @ 'bindkey' [expected player argument 1, but nil]
-
Hi. I want to make a script that opens the nearest door on the car when right clicking. But i don't know ho to start. My explanation is not very good, i know. If needed i will somehow explain further. But here's a video : https://www.youtube.com/watch?v=yr4PBGSawhY