magyargabi Posted June 15, 2013 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/
OGF Posted June 15, 2013 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 )
magyargabi Posted June 23, 2013 Author Posted June 23, 2013 dont work please write full script. thanks
xXMADEXx Posted June 23, 2013 Posted June 23, 2013 dont work please write full script. thanks This is a help page. Not a request page. The Ultimate Lua Tutorial! | MTA PHP SDK
iMr.3a[Z]eF Posted June 23, 2013 Posted June 23, 2013 its simple -- Event "onVehicleDamage" -- Function FixVehicle To Visit Us Press Here: mtasa://5.9.206.180:22002
Vector Posted June 23, 2013 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); there are two kinds of people: those who know C++ and those who don´t. .)
Moderators IIYAMA Posted June 24, 2013 Moderators 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.... Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
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