Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local hiding = false
- local function toggleObjects(show)
- local objects = getElementsByType("object")
- for _, object in ipairs(objects) do
- local id = getElementModel(object)
- if ids[id] then
- setElementDimension(object, show and 0 or 1)
- end
- end
- end
- bindKey("N", "down", function ()
- hiding = not hiding
- toggleObjects(hiding)
- end)
- addEventHandler("onClientMapStarting", resourceRoot, function ()
- if hiding then
- toggleObjects(false)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement