View Issue Details

IDProjectCategoryView StatusLast Update
0000403GTA ConnectedGrand Theft Auto IIIpublic2023-04-28 16:58
Reporterrww Assigned To 
PriorityhighSeverityminorReproducibilityalways
Status newResolutionopen 
Platformx64OSWindowsOS Version11
Summary0000403: The same vehicles spawns at different heights
Description

Vehicles spawns at different heights, they spawned from server-side script. Coord Z is correct, they should spawns on surface, but for some reason, they spawns also in tunnel. In some parking lot I think there was also this problem.

Steps To Reproduce

Try to join on "IS - Irelevant III Server ..." and try check spawned vehicles on /hospital, and next try from /portland drive in tunnel to Shoreside Vale.

TagsNo tags attached.
Game

Activities

rww

2022-06-13 19:07

reporter  

car_parked_1.jpg (311,447 bytes)
car_parked_2.jpg (416,119 bytes)

rww

2023-04-28 16:30

reporter   ~0000364

It happend, because when we drive from Portland under Staunton in tunnel, game still is on Portland Island (and game don't load Stauton Island collision - all vehicles fall to blue hell and respawn in tunnel).

rww

2023-04-28 16:58

reporter   ~0000365

Workaround for it (tested)
<code lua>
Get_Player_Island = 0

bindEventHandler("OnResourceReady", thisResource, function(event, resource)

setInterval(function() -- timer for function second
    OneSecond()
end, 1000)

end)

function OneSecond()

if (localPlayer) then

    local getPlayerIsland = gta.getIslandFromPosition(localPlayer.position) -- workaround for https://bugs.gtaconnected.com/view.php?id=403

    if (localPlayer.position.z &lt; 0.0) then
        if (getPlayerIsland ~= Get_Player_Island) then
            if (getPlayerIsland ~= 0) then

                gta.setIsland(tonumber(getPlayerIsland), true, true, true)

            end
        end
    end

    Get_Player_Island = getPlayerIsland

end

end
</code>

Issue History

Date Modified Username Field Change
2022-06-13 19:07 rww New Issue
2022-06-13 19:07 rww File Added: car_parked_1.jpg
2022-06-13 19:07 rww File Added: car_parked_2.jpg
2023-04-28 16:30 rww Note Added: 0000364
2023-04-28 16:58 rww Note Added: 0000365