APIOQM Posted August 8, 2008 Share Posted August 8, 2008 Can anyone make a script for MTA or SAMP, that allows the player to strip their car of all doors, bumpers, hoods, etc... to exposed are car which cant obtain any visual damage? I want this so I can make some stripped down rally cars etc, not so much so that I cant take visual damage. Besides I don't think the bumpers can come off. In advance, thanks! Link to comment
Deddalt Posted August 8, 2008 Share Posted August 8, 2008 I'm new to LUA so I can't really tell you if it's possible on MTA, but I know on SA-MP it's impossible. Link to comment
APIOQM Posted August 8, 2008 Author Share Posted August 8, 2008 It is not possible in SAMP because the vehicle damage is not synced, but in MTA it is... Link to comment
Gamesnert Posted August 8, 2008 Share Posted August 8, 2008 It sure is possible! For example: http://development.mtasa.com/index.php? ... eDoorState http://development.mtasa.com/index.php? ... heelStates http://development.mtasa.com/index.php? ... LightState Also, if you strip it and use setElementHealth and set it to 1000, the doors should still be off. Anyway, I'm a bit busy... 2 jobs at the moment and I'm not so fast. ^^ Link to comment
50p Posted August 8, 2008 Share Posted August 8, 2008 This command will strip all vehicle's doors you are a driver of: addCommandHandler( "strip", function( player ) local playerVeh = getPlayerOccupiedVehicle( player ) if playerVeh and getVehicleOccupant( playerVeh, 0 ) == player then for i = 1, 4 do setVehicleDoorState( playerVeh, i, 4 ) end end end ) 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