magyargabi Posted June 15, 2013 Share Posted June 15, 2013 Hi guys ! i want make in my server, never fire the car. how to make ? thanks for helping. /sorry i only little speak English/ Link to comment
OGF Posted June 15, 2013 Share Posted June 15, 2013 When the vehicle health gets to a certain point, make the car damage proof. Use these 2 functions bool setVehicleDamageProof ( vehicle theVehicle, bool damageProof ) float getElementHealth ( element theElement ) Link to comment
magyargabi Posted June 23, 2013 Author Share Posted June 23, 2013 dont work please write full script. thanks Link to comment
xXMADEXx Posted June 23, 2013 Share Posted June 23, 2013 dont work please write full script. thanks This is a help page. Not a request page. Link to comment
iMr.3a[Z]eF Posted June 23, 2013 Share Posted June 23, 2013 its simple -- Event "onVehicleDamage" -- Function FixVehicle Link to comment
Vector Posted June 23, 2013 Share Posted June 23, 2013 use this function to craeate a indestructible car, instead of createVehicle -> -- arguments are the same than createVehicle function createIndestructibleVehicle (...) local vehicle = createVehicle (unpack({...})); -- create vehicle if not vehicle then return false; end; setVehicleDamageProof (vehicle, true); -- enable damage proof return vehicle; end; example -> -- this creates a indestructible hunter near of the player. local pX,pY,pZ = getElementPosition (player); createIndestructibleVehicle (425, pX+2, pY+2, pZ); Link to comment
Moderators IIYAMA Posted June 24, 2013 Moderators Share Posted June 24, 2013 He is requesting, he is only interested in the whole code. (he don't know anything about lua) Waste of your time.... 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