XxCozzaxX Posted April 11, 2010 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?
dzek (varez) Posted April 11, 2010 Posted April 11, 2010 event onVehicleDamage + explode on Damage ? something like that? as i think i dont get your idea Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
XxCozzaxX Posted April 11, 2010 Author Posted April 11, 2010 https://wiki.multitheftauto.com/wiki/IsV ... Explodable https://wiki.multitheftauto.com/wiki/Set ... Explodable
dzek (varez) Posted April 11, 2010 Posted April 11, 2010 getElementsByType Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
XxCozzaxX Posted April 11, 2010 Author Posted April 11, 2010 Done... only works on the vehicles in the script i put it in
Jason_Gregory Posted April 11, 2010 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 Contact me if you need a Website / Signature ↑ / Mapuploadsystem (HTML5, JS, PHP, ASP.NET, MySQL / Sybase)
XxCozzaxX Posted April 11, 2010 Author Posted April 11, 2010 Works fine in the resource the code is in... but for map files it doesnt work.
Jason_Gregory Posted April 11, 2010 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. Contact me if you need a Website / Signature ↑ / Mapuploadsystem (HTML5, JS, PHP, ASP.NET, MySQL / Sybase)
XxCozzaxX Posted April 11, 2010 Author 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?
Jason_Gregory Posted April 11, 2010 Posted April 11, 2010 Theres a lot of converters ot there, try this http://gtamap.delux-host.com/converter/ Contact me if you need a Website / Signature ↑ / Mapuploadsystem (HTML5, JS, PHP, ASP.NET, MySQL / Sybase)
dzek (varez) Posted April 11, 2010 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" Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
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