como faço para colocar esse script de portão automático dentro de um interior/dimensão
local gate = createObject(16775, 246, 72.599609375, 1004.799987793, 0, 0, 0)
local marker = createMarker(246, 72.599609375, 1004.799987793, "cylinder", 8, 0, 0, 0, 0)
function moveGate(thePlayer)
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)) , aclGetGroup("Policial")) then
moveObject(gate, 3000, 246, 72.599609375, 1004.799987793)
end
end
addEventHandler("onMarkerHit", marker, moveGate)
function move_back_gate()
moveObject(gate, 3000, 246, 72.599609375, 1007.2)
end
addEventHandler("onMarkerLeave", marker, move_back_gate)