XxCozzaxX Posted April 11, 2010 Share Posted April 11, 2010 I have seen explodable fuel tanks... but how do i make it for ALL resources/vehicles, i want it so automatically they are explodable but even map vehicles want it, how can i do this? Link to comment
dzek (varez) Posted April 11, 2010 Share Posted April 11, 2010 event onVehicleDamage + explode on Damage ? something like that? as i think i dont get your idea Link to comment
XxCozzaxX Posted April 11, 2010 Author Share Posted April 11, 2010 https://wiki.multitheftauto.com/wiki/IsV ... Explodable https://wiki.multitheftauto.com/wiki/Set ... Explodable Link to comment
XxCozzaxX Posted April 11, 2010 Author Share Posted April 11, 2010 Done... only works on the vehicles in the script i put it in Link to comment
Jason_Gregory Posted April 11, 2010 Share Posted April 11, 2010 local vehicles = getElementsByType ( "vehicle" ) for theKey,theVehicle in ipairs(vehicles) do if ( isVehicleFuelTankExplodable ( theVehicle ) == false ) then setVehicleFuelTankExplodable ( theVehicle, true ) end end Link to comment
XxCozzaxX Posted April 11, 2010 Author Share Posted April 11, 2010 Works fine in the resource the code is in... but for map files it doesnt work. Link to comment
Jason_Gregory Posted April 11, 2010 Share Posted April 11, 2010 XxCozzaxX, theres a easy way to get these Vehicles too. Take a look at this... https://wiki.multitheftauto.com/wiki/Wri ... nformation You can also convert your Vehicles into a Lua Code. Link to comment
XxCozzaxX Posted April 11, 2010 Author Share Posted April 11, 2010 XxCozzaxX,theres a easy way to get these Vehicles too. Take a look at this... https://wiki.multitheftauto.com/wiki/Wri ... nformation You can also convert your Vehicles into a Lua Code. The script seems to already have done that? Plus, how do i convert all 2000 vehicles to lua? Link to comment
Jason_Gregory Posted April 11, 2010 Share Posted April 11, 2010 Theres a lot of converters ot there, try this http://gtamap.delux-host.com/converter/ Link to comment
dzek (varez) Posted April 11, 2010 Share Posted April 11, 2010 Works fine in the resource the code is in... but for map files it doesnt work. it should work for map files.. BUT.. you are probably 1st setting it explodable, then loading a map (new cars, not set!) if ( isVehicleFuelTankExplodable ( theVehicle ) == false ) then setVehicleFuelTankExplodable ( theVehicle, true ) end i dont see a point of checking if it false and setting to true.. after setting all to true.. it will be just the same, without "if" 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