Jump to content

Q: to all scripters - Streaming Issues


Recommended Posts

Posted

Hey there folks!

I have a question for very good scripters, is it possible to disable those "streaming issues" when you are for example: going too fast with a car, the whole texture switches to a LOD and looks broken (it mostly happens on spectate during race). A solution to this would be a lot helpful when recording racing and stuff.

  • 7 months later...
Posted
On 03/07/2025 at 08:36, CastiaL said:

SetLowLODElement, you can check this function

Hey, so I forgot to message here before because I went quite inactive after this

So I tested it out, and I don't think that helped. Still saw textures dissapearing when I was on the spectate and spectating someone caused this, but I think now - new MTA:SA version and "Fixed" handling might've fixed it (and vehicle physics set to 30) because there are something like "slowroads" and "speedroads" phenomenons. So basically, if you drive not at the main road in LV, but on the strip (these colored like floors near 4 dragons) they will give you more speed than usual. Now recently I noticed 30 fps won't enable those pesky speedroads so maybe that is the problem, but i'd love to still play on the Legacy handling, but idk how i would disable the "speedroad" phenomenon I remember one video saying that "It is really easy to disable it with a simple script" but I don't think that's the case.

Posted
On 24/02/2026 at 10:14, J4cobLIVEmain said:

Hey, so I forgot to message here before because I went quite inactive after this

So I tested it out, and I don't think that helped. Still saw textures dissapearing when I was on the spectate and spectating someone caused this, but I think now - new MTA:SA version and "Fixed" handling might've fixed it (and vehicle physics set to 30) because there are something like "slowroads" and "speedroads" phenomenons. So basically, if you drive not at the main road in LV, but on the strip (these colored like floors near 4 dragons) they will give you more speed than usual. Now recently I noticed 30 fps won't enable those pesky speedroads so maybe that is the problem, but i'd love to still play on the Legacy handling, but idk how i would disable the "speedroad" phenomenon I remember one video saying that "It is really easy to disable it with a simple script" but I don't think that's the case.

Regarding your first issue (textures disappearing on spectate), it usually happens because the camera moves faster than the GTA:SA engine can stream the textures into memory. It's a hard engine limitation, but sometimes tweaking engineSetModelLODDistance for specific objects or increasing the server's streaming memory can mitigate it.

Now, about the "speedroads" in Las Venturas: you are 100% correct. Those specific colored floors on the LV Strip have a much higher native friction/grip in the game's surface data compared to normal asphalt. When you use Legacy handling, that extra grip turns cars into rockets.

The video you watched was right, it is very easy to disable with a simple client-side script. You just need to use engineSetSurfaceProperties to normalize the grip on those surfaces so they behave like a regular road.

Here is a quick example of a client-side script that loops through the surfaces and lowers the grip of those overpowered floors:

Lua
addEventHandler("onClientResourceStart", resourceRoot, function()
    -- Loop through all GTA surface IDs (0 to 178)
    for i = 0, 178 do
        local grip = engineGetSurfaceProperties(i, "tyregrip")
        
        -- If the surface has an unnaturally high grip (like the LV strip), normalize it
        -- Normal asphalt grip is usually around 0.8 to 1.0
        if grip and grip > 1.2 then 
            engineSetSurfaceProperties(i, "tyregrip", 1.0) 
        end
    end
end)

just add this to a client script, and you will be able to play with Legacy handling anywhere in LV without the speedroad effect bothering you. Let me know if you need help setting it up!
Posted
13 hours ago, fyr said:

Regarding your first issue (textures disappearing on spectate), it usually happens because the camera moves faster than the GTA:SA engine can stream the textures into memory. It's a hard engine limitation, but sometimes tweaking engineSetModelLODDistance for specific objects or increasing the server's streaming memory can mitigate it.

Now, about the "speedroads" in Las Venturas: you are 100% correct. Those specific colored floors on the LV Strip have a much higher native friction/grip in the game's surface data compared to normal asphalt. When you use Legacy handling, that extra grip turns cars into rockets.

The video you watched was right, it is very easy to disable with a simple client-side script. You just need to use engineSetSurfaceProperties to normalize the grip on those surfaces so they behave like a regular road.

Here is a quick example of a client-side script that loops through the surfaces and lowers the grip of those overpowered floors:

Lua
 
addEventHandler("onClientResourceStart", resourceRoot, function()
    -- Loop through all GTA surface IDs (0 to 178)
    for i = 0, 178 do
        local grip = engineGetSurfaceProperties(i, "tyregrip")
        
        -- If the surface has an unnaturally high grip (like the LV strip), normalize it
        -- Normal asphalt grip is usually around 0.8 to 1.0
        if grip and grip > 1.2 then 
            engineSetSurfaceProperties(i, "tyregrip", 1.0) 
        end
    end
end)

just add this to a client script, and you will be able to play with Legacy handling anywhere in LV without the speedroad effect bothering you. Let me know if you need help setting it up!

Amazing stuff! Thanks a lot. Will test it out and surely will share it accross racing. I think I know how to implement this.

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...