Jump to content

Vehicle Script Request


APIOQM

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...