Jump to content

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


ajacob112

Recommended Posts

Posted (edited)

right so um. cars keep randomly blowing up.. i tried many fixes but i cant figure it out, if anyone knows how to fx it itd be amazing, i seen some servers have it fixed but idk how

Edited by Guest
Posted

I guess you are using valhalla gaming scripts, right? you should check the resources, it's not a 1.1 bug, as it doesn't happend in other game modes.

Posted

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,

Posted
        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

Posted

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

Posted
Maybe you should search, and not make 3 posts just to get help.

No, I'm amazed by the selfishness of some people on this forum. This guy requested help, got his answer and he doesn't reply back to help others with the same problem.

Posted

The only function I could see in vehicle-system resource seems to check if they are in water every 10 minutes.

File: vehicle-system/s_vehicle_system.lua

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