danuixas Posted September 21, 2015 Share Posted September 21, 2015 (edited) Hello there i got a little problemo again well i converted gostown paradise to mta yesterday annddddd the game crashes in some point when you drive around it well thats problemo nr 1 there is problemo nr 2 im not familiar with mta scripting and how is it possible to make like better stream distance well i mean when you drive around i see roads loading infront of me i got max draw distance on but objects appear infront of me annoyng as helll i want it to be more like default sa map where you see alot of map in sky not 4 objects here's a example how i see stuff ( dont mind the default sa objects ss is from the time when i only half converted gostown) and heres example of the code im using for dis gostown: function importqqqures2() txd = engineLoadTXD("textures/Area13.txd") engineImportTXD(txd, 3976) col = engineLoadCOL("coll/Gp_barrieres.col") dff = engineLoadDFF("models/Gp_barrieres.dff", 0) engineReplaceCOL(col, 3976) engineReplaceModel(dff, 3976) engineSetModelLODDistance(3976, 300) end setTimer(importqqqures2, 3000, 1) addEventHandler("onClientResourceStop", getResourceRootElement(getThisResource()), function() engineRestoreCOL(3976) engineRestoreModel(3976) destroyElement(dff) destroyElement(col) destroyElement(txd) end) function importqqqures2() txd = engineLoadTXD("textures/Area13.txd") engineImportTXD(txd, 3978) col = engineLoadCOL("coll/Gp_A13_Canon.col") dff = engineLoadDFF("models/Gp_A13_Canon.dff", 0) engineReplaceCOL(col, 3978) engineReplaceModel(dff, 3978) engineSetModelLODDistance(3978, 300) end setTimer(importqqqures2, 3000, 1) addEventHandler("onClientResourceStop", getResourceRootElement(getThisResource()), function() engineRestoreCOL(3978) engineRestoreModel(3978) destroyElement(dff) destroyElement(col) destroyElement(txd) end) I manually wrote each of this for each object so yeah i got only this file with object replacement I would really like examples of code for making a stable map conversion sorry for mah bad english Edited September 21, 2015 by Guest Link to comment
KariiiM Posted September 21, 2015 Share Posted September 21, 2015 Use Lua tag's on your code [lua--]youcode [/lua] Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now