Jump to content

Vehicle as Object


Recommended Posts

Posted

Not as far as I know, but you can create a vehicle and freeze it, make it damage proof. Then it'll have similar properties to an object.

Posted

I think if you export the vehicles 3D Model and texture (the .dff and .txd of default GTA) and just replace an object with it, it would work. I'm not entirely sure if it would work, but I don't see why not.

Posted

try this

Server.lua

addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), 
     function() 
  
        local tow = createVehicle(562, -2052.4907226563, 154.04287719727, 28.589487075806, 0, 0, 0, "Taller") 
        addVehicleUpgrade ( tow, 1010 ) -- nitro 
        setVehicleDamageProof( tow, true) -- make it damage-proof 
        setVehicleIdleRespawnDelay ( tow, 10000 )  
        tallerSF = false 
     end 
) 

Posted
try this

Server.lua

addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), 
     function() 
  
        local tow = createVehicle(562, -2052.4907226563, 154.04287719727, 28.589487075806, 0, 0, 0, "Taller") 
        addVehicleUpgrade ( tow, 1010 ) -- nitro 
        setVehicleDamageProof( tow, true) -- make it damage-proof 
        setVehicleIdleRespawnDelay ( tow, 10000 )  
        tallerSF = false 
     end 
) 

This doesn't really make any since, because all you need is: createVehicle, setElementFrozen, and setvehicleDamageProof

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...