Jump to content

[HELP]Too many custom objects(map conversion)


danuixas

Recommended Posts

Hello there :D

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 :D 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)

4d6ffcc2acb2c9e1dbf6a24934ff0761130.png

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 :D

sorry for mah bad english

Edited by Guest
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...