megaman54

Members
  • Content Count

    245
  • Joined

  • Last visited

Community Reputation

1 Neutral

About megaman54

  • Rank
    Red-Headed Stepchild

Details

  • Location
    Finland

Recent Profile Visitors

583 profile views
  1. Thank you! I guess I have to do some tests with shaders until someone responds.
  2. I would like to try and make a shader/script that applies baked lighting to models and to do so I need to access UV Channel 2 of the custom models. Does GTA even support models with a second UV channel and if so, how can I access the channel in the shader code?
  3. On most 3D modeling applications there is a gizmo like this in the viewport that rotates with the camera, showing where the 3 axis are. Example image: https://imgur.com/a/k1Ykc How would I go about making such gizmo in MTA? I'm not that good with math so I hope someone can give me some pointers. Thanks.
  4. You could make your own module for the server. Since modules are writte in C++, you could write complete functions there and just calls them from lua.
  5. You could make your own module for the server. Since modules are writte in C++, you could write complete functions there and just calls them from lua.
  6. I dont know about performance difference but atleast with shaders, you can replace invidual textures without having to download the whole .txd file. Also in my experience, shaders have always worked but often .txd s fail to load.
  7. Who would make a account system with clientside database? That wouldnt even work.
  8. How is it a security risk if there is a .db file located in the client's mods folder that is accessed with the SQL functions? The client cannot connect to any other database other than what the resource has created clientside. I'm talking about local SQL databases and not those running externally. XML is slow and in the script i have, it is not possible to move the data to server side and use triggerServerEvent.
  9. Are the SQL functions coming to client side anytime soon?
  10. This is as close to real as handling gets with GTA:SA physics.
  11. my useless and compiled resource: http://community.mtasa.com/index.php?p=resources&s=details&id=2751 please remove it. thanks DONE
  12. Can you please explain what do you mean by "screen effects"? Like, Wet screen if it rains, someone else made a resource that does exactly that I mean like lightning strike effects. When it strikes, screen will flash etc. Also if you can, you could make some lightning strike effects on the sky to make it even more realistic Other thing i'd like to see is that when lightning strikes, instead of the whole screen flashing, make the world flash by using shaders. I hope this helps
  13. Awesome script man! You should add some screen effects too as the default ones from GTA are pretty bad.
  14. How can i draw a bounding box around all objects that are currently streamed in? I tried with this code but it doesnt draw anything and i dont know why function render() for i,v in ipairs(getElementsByType("object", root, true))do local x,y,z = getElementPosition(v) local mix,miy,miz,max,may,maz = getElementBoundingBox(v) local x1,y1 = getScreenFromWorldPosition(mix+x,miy+y,miz+z) local x2,y2 = getScreenFromWorldPosition(max+x,may+y,maz+z) dxDrawLine(x1,y1,x2,y2,tocolor(255,0,0,255)) end end addEventHandler("onClientRender", root, render)