_SET_VEHICLE_ST
DocsSetVehicleSt(vehicle, toggle)Description
Has something to do with trains. Always precedes SET_MISSION_TRAIN_AS_NO_LONGER_NEEDED.
============================================
May be true that it can be used with trains not sure, but not specifically for trains. Go find Xbox360 decompiled scripts and search for 'func_1333' in freemode.c it isn't used just for trains. Thanks for the info tho.
Btw, func_1333 ends up calling this func which uses this native,
void func_1338(int iParam0)//Position
{
ENTITY::FREEZE_ENTITY_POSITION(iParam0, true);
ENTITY::SET_ENTITY_COLLISION(iParam0, false, 0);
ENTITY::SET_ENTITY_INVINCIBLE(iParam0, true);
VEHICLE::_0xDF594D8D(iParam0, true);
}Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
toggle | BOOL | — |
Quick Snippet: Get Vehiclevehicle
vehicleUse this to get the current vehicle handle for this native.
-- Get the vehicle the player is currently in
local ped = PlayerPedId()
local vehicle = GetVehiclePedIsIn(ped, false)
if vehicle ~= 0 then
print("Vehicle handle: " .. vehicle)
print("Model: " .. GetEntityModel(vehicle))
else
print("Player is not in a vehicle")
endVehicle Models

adder
alpha
blade
ardent
asea
cogcabrio
baller
blistaReturns
voidThis native does not return a value.