Advertisement
Guest User

Untitled

a guest
Sep 1st, 2014
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. -- FILE: mapEditorScriptingExtension_c.lua
  2. -- 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
  3. -- VERSION: RemoveWorldObjects (v1) AutoLOD (v1)
  4.  
  5. function requestLODsClient()
  6. triggerServerEvent("requestLODsClient", resourceRoot)
  7. end
  8. addEventHandler("onClientResourceStart", resourceRoot, requestLODsClient)
  9.  
  10. function setLODsClient(lodTbl)
  11. for i, model in ipairs(lodTbl) do
  12. engineSetModelLODDistance(model, 300)
  13. end
  14. end
  15. addEvent("setLODsClient", true)
  16. addEventHandler("setLODsClient", resourceRoot, setLODsClient)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement