11-29-2020, 01:30 AM
Hey, i need script which can open close door by key.
I find one script on forum but this script doesnt work. can someone help me?
VV ThiS from down vvvv dont work
local keyID = 2970 -- Key's id
local lockedDoorID = 7033 -- Doors LOCKED ID.
local door_location = { X = 32108, Y = 31568, Z = 9 } -- Door's location.
if topitem(door_location.X, door_location.Y, door_location.Z).id == lockedDoorID then
useitemon(keyID, door_location.X, door_location.Y, door_location.Z)
wait(800, 1500)
end
usedoor(door_location.X, door_location.Y, door_location.Z, 'open')
wait(800, 1500)
I find one script on forum but this script doesnt work. can someone help me?
VV ThiS from down vvvv dont work
local keyID = 2970 -- Key's id
local lockedDoorID = 7033 -- Doors LOCKED ID.
local door_location = { X = 32108, Y = 31568, Z = 9 } -- Door's location.
if topitem(door_location.X, door_location.Y, door_location.Z).id == lockedDoorID then
useitemon(keyID, door_location.X, door_location.Y, door_location.Z)
wait(800, 1500)
end
usedoor(door_location.X, door_location.Y, door_location.Z, 'open')
wait(800, 1500)