ajacob112 Posted September 10, 2011 Share Posted September 10, 2011 (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 September 10, 2011 by Guest Link to comment
Castillo Posted September 10, 2011 Share Posted September 10, 2011 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. Link to comment
ajacob112 Posted September 10, 2011 Author Share Posted September 10, 2011 Works fine on 1.05, Bugs up on 1.1 Link to comment
AGENT_STEELMEAT Posted September 10, 2011 Share Posted September 10, 2011 Not a 1.1 bug, it's a bug with whatever gamemode your using. Link to comment
ajacob112 Posted September 10, 2011 Author Share Posted September 10, 2011 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
Castillo Posted September 10, 2011 Share Posted September 10, 2011 Firstly, you have to know from which resource they get blown, the only way would be to search every script. Link to comment
ajacob112 Posted September 10, 2011 Author Share Posted September 10, 2011 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
ajacob112 Posted September 10, 2011 Author Share Posted September 10, 2011 i took out both of those blowvehicle's it worked for about 30 min then they blew up again Link to comment
AGENT_STEELMEAT Posted September 10, 2011 Share Posted September 10, 2011 post the code where the vehicles are actually created Link to comment
ajacob112 Posted September 10, 2011 Author Share Posted September 10, 2011 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
LonelyRoad Posted September 11, 2011 Share Posted September 11, 2011 Comment/Remove the function that checks if the vehicle is underwater - boom, fixed. Link to comment
Benevolence Posted September 11, 2011 Share Posted September 11, 2011 Comment/Remove the function that checks if the vehicle is underwater - boom, fixed. On which script? Link to comment
Benevolence Posted September 12, 2011 Share Posted September 12, 2011 Bump. Which script is the problem in and how did you fix it? Link to comment
Castillo Posted September 13, 2011 Share Posted September 13, 2011 Maybe you should search, and not make 3 posts just to get help. Link to comment
Benevolence Posted September 13, 2011 Share Posted September 13, 2011 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. Link to comment
Castillo Posted September 14, 2011 Share Posted September 14, 2011 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 Link to comment
Benevolence Posted September 14, 2011 Share Posted September 14, 2011 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 +1 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now