Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/03/20 in all areas

  1. Take a photo of it. ? But, you can make a "3D Render" with this resource: https://wiki.multitheftauto.com/wiki/Resource:Object_preview
    1 point
  2. Das das uma, ou você remove/adiciona o onClientRender quando quiser, ou pode usar variáveis, como no exemplo abaixo; onde a variável será trocada a cada 1 segundo e meio local mostrandoOutroRetangulo = true addEventHandler('onClientRender', root, function() dxDrawRectangle(...) if mostrandoOutroRetangulo then dxDrawRectangle(...) end end) setTimer(function() mostrandoOutroRetangulo = not mostrandoOutroRetangulo --(recebe o valor contrario do atual, ou seja, se estiver true vira false e vice-versa) end, 1500, 0) no seu caso quando quiser que tal coisa não apareça você pode remover a variável com e quando quiser que volte a aparecer basta voltar a variavel pra true
    1 point
  3. Sorry for not investigating this tutorial that thoughly but you have to add the code inside the vehSelection function. Otherwise it does not work because the GUI has not been created yet. -- Put createVehicleHandler here. -- Put populateGridlist here -- Etc. function vehSelection() vehList = guiCreateWindow(0.06, 0.33, 0.31, 0.30, "Vehiculos", true) guiWindowSetSizable(vehList, false) botonCrear = guiCreateButton(149, 260, 101, 31, "Crear", false, vehList) lista = guiCreateGridList(0.06, 0.12, 0.87, 0.69, true, vehList) guiGridListAddColumn(lista, "Coches", 0.9) guiSetVisible(vehList,false) populateGridlist() addEventHandler("onClientGUIClick",botonCrear,createVehicleHandler,false) end -- Etc. Explanation: if you put code inside the onClientResourceStart event handler then the code is called after all scripts have been loaded/executed. This is useful if you want to wait until MTA has loaded all custom resource functions into _G before starting your code. Putting code into the event handler is not a requirement but a recommendation.
    1 point
  4. Dear Moony, let me ask you a simple question because I have not yet tried this amazing tutorial (it is pretty long but looks thorough, thx for sharing!). Do you have the following script line after your createVehicleHandler function definition: addEventHandler("onClientGUIDoubleClick",lista,createVehicleHandler,false)
    1 point
  5. https://community.multitheftauto.com/index.php?p=resources&s=details&id=11265
    1 point
  6. I recommend you check the modding book by fastman: https://gtaforums.com/topic/765452-doc-gta-sa-modding-book/ No polygon limit comes to mind immediately but I think it's safe to say that your models or each component shouldn't exceed 10 or 20k polygons. Collisions should generally be kept as low as possible and you can do so by utilising primitives to eliminate a good bunch of polygons used by the collision mesh. There's an example on this wiki page regarding removal of world objects: https://wiki.multitheftauto.com/wiki/RemoveWorldModel What you're asking may very well work on MTA, but you'd have to utilise a custom streamer I think to keep performance impact subtle as possible. I'm not sure how well a map which fits SA dimensions loads and renders in MTA. From what I've seen it does have some issues, but that might be due to the creators not using LOD elements.
    1 point
×
×
  • Create New...