qaisjp Posted July 7, 2011 Share Posted July 7, 2011 I'm making a small gamemode and part of it contains this: function onVehicleStartExit(player, seat, jack, door) if ACTIVE[player] == true then setElementHealth(source, 100) setVehicleDamageProof(source, true) setTimer(setElementAlpha, 50, 101, source, getElementAlpha(source)-1) setTimer(destroy, 5050, 1, source) killPed(player) end end addEventHandler("onVehicleStartExit", root, onVehicleStartExit) When ACTIVE[player] is false, everything is normal. But when it is true, I die (yay) but the vehicle goes on fire . This isn't possible... Help me please EDIT: After testing without killPed, it goes on fire... Link to comment
Jaysds1 Posted July 7, 2011 Share Posted July 7, 2011 So the vehicle is suppose to be on fire when you die? if yes, then use local vehicle = getPedOccupiedVehicle(player) blowVehicle(vehicle, true) -- true means that it'll explode Link to comment
qaisjp Posted July 7, 2011 Author Share Posted July 7, 2011 Nonono, lol. It automatically goes on fire when use my script, i dont want it to go on fire! Link to comment
BinSlayer1 Posted July 7, 2011 Share Posted July 7, 2011 i think you actually don't want it to go on fire if yes, then @ setElementHealth use "1000" instead of "100" any value less than 250 makes the car go on fire I tested this a while ago. Link to comment
CowTurbo Posted July 7, 2011 Share Posted July 7, 2011 vehicle max health is 1001. ofcourse u can set more, but, 1001 is the normal Spawn a vehicle using admin panel, and see it there . Link to comment
qaisjp Posted July 7, 2011 Author Share Posted July 7, 2011 Ooooooh! LMFAO! So max isnt 100, its 1000 O_O. Thanks! (Please close this to prevent any unneeded bumps) 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