Jump to content

Anyone know how 2 fix the bug where cars blow up?UNANSWERED


ajacob112

Recommended Posts

is there anything i can do? i mean it didnt do this on 1.05, Is there a check i could do for if the vehicle is unoccupied it cant blow up or something? I have no idea how to fix this i tried one way

if not getVehicleOccupant(vehicle) then

blowVehicle(vehicle)

else

and that didnt work,

Link to comment
        exports.global:sendLocalMeAction(source, "attempts to start the engine but fails.") 
                            outputChatBox("The engine is broken.", source) 
                        elseif exports.global:hasItem(veh, 74) then 
                            while exports.global:hasItem(veh, 74) do 
                                exports.global:takeItem(veh, 74) 
                            end 
                             
                            blowVehicle(veh) 
                        elseif fuel >= 1 then 

function doBreakdown() 
    if exports.global:hasItem(source, 74) then 
        while exports.global:hasItem(source, 74) do 
            exports.global:takeItem(source, 74) 
        end 
         
        blowVehicle(source) 
    else 

are the only 2 things in vehicle-system with the blowvehicle function

Link to comment

I timed it out, it seems they blow up every 10 mins on the mark

and sometimes a small handful of vehicles dont blow up,

the script where it spawns shows me a mysql table that it loads from

i have no timer set for 10 minutes on anything, its not a progressive damage either like it catches on fire, they just blow up instantaneously, Like if you were to satchel a car with 10 satchels then blow it, It just blows up, no fire

Added: there is no onresourcestart for spawning the vehicles, just mysql = exports.mysql , All vehicles save into a table, I timed it out and they blow up on a exact time, 10 minutes to every explosion

Link to comment

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