Sign in to follow this  
f7A0UVjqBMx9nnBQ6

_

Recommended Posts

No need to "convert". Implementing the function in MTA will do the trick.

function AddStaticVehicle(modelid, spawn_x, spawn_y, spawn_z, angle, color1, color2) 
    local vehicle = createVehicle(modelid, spawn_x, spawn_y, spawn_z, 0, 0, angle) 
    local c1, c2, c3, c4 = getVehicleColor(vehicle) 
    setVehicleColor(vehicle, color1, color2, c3, c4) 
    toggleVehicleRespawn(vehicle, true) 
    setVehicleRespawnDelay(vehicle, 60000) 
    return vehicle 
end 

Add this function to the script and then you can call AddStaticVehicle.

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.