View Issue Details

IDProjectCategoryView StatusLast Update
0000214ServerGrand Theft Auto IVpublic2020-10-22 21:56
ReporterTosfera Assigned To 
PriorityhighSeveritycrashReproducibilityalways
Status newResolutionopen 
Product Version1.1.21 
Summary0000214: Restarting a resource when the resource creates vehicles, crashes the client
DescriptionMy script creates several vehicles server sided to test a few functions and scripts, once I rebooted the resource; every client disconnected.
Steps To Reproducecreate a server sided file with the following content:

addEventHandler(
    'OnResourceStart',
    function(_, resource)
        if (resource == thisResource) then
            local vehicle= gta.createVehicle(1821991593, randomLocation.crook)
            addToWorld(vehicle)
            vehicle.setColours(vehicle, 0, 0)
        end
    end
)

start the script, connect to the server, restart the script. watch it crash.
Additional Informationcrashlogs: https://cdn.discordapp.com/attachments/431847495732166658/764225254573736006/2020-10-09_22-37-23.945.dmp.gz
TagsNo tags attached.

Activities

Callum

2020-10-22 21:56

reporter   ~0000096

Adding to this, the server appears to get stuck in an infinite loop creating the vehicles again in the same position. Within a second or so you can see dozens and dozens of the same vehicle model all within each other. This is most observable with a Police Maverick as they instantly shoot across the sky in all directions (as if they're trying to spread out).

Issue History

Date Modified Username Field Change
2020-10-09 20:44 Tosfera New Issue
2020-10-22 21:56 Callum Note Added: 0000096