Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- FILE: mapEditorScriptingExtension_c.lua
- -- PURPOSE: Prevent the map editor feature set being limited by what MTA can load from a map file by adding a script file to maps
- -- VERSION: RemoveWorldObjects (v1) AutoLOD (v1)
- function requestLODsClient()
- triggerServerEvent("requestLODsClient", resourceRoot)
- end
- addEventHandler("onClientResourceStart", resourceRoot, requestLODsClient)
- function setLODsClient(lodTbl)
- for i, model in ipairs(lodTbl) do
- engineSetModelLODDistance(model, 300)
- end
- end
- addEvent("setLODsClient", true)
- addEventHandler("setLODsClient", resourceRoot, setLODsClient)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement