warwagon2
warwagon2 is a RedM vehicle model (wagons, coaches, boats and trains all use CreateVehicle). Its model hash is 0xA37D73F6 (-1552059402 as a signed integer).
Hash and facts
| Name | warwagon2 |
|---|---|
| Hash (hex) | 0xA37D73F6 |
| Signed | -1552059402 |
| Unsigned | 2742907894 |
Spawn it
local model = 0xA37D73F6 -- warwagon2
RequestModel(model, false)
while not HasModelLoaded(model) do Wait(0) end
local coords = GetEntityCoords(PlayerPedId(), true, true)
local vehicle = CreateVehicle(model, coords.x + 4.0, coords.y, coords.z, 0.0, true, false, false, false)
SetPedIntoVehicle(PlayerPedId(), vehicle, -1) -- -1 = driver seat
SetModelAsNoLongerNeeded(model)const Delay = (ms) => new Promise((r) => setTimeout(r, ms))
async function spawn() {
const model = -1552059402 // 0xA37D73F6, warwagon2
RequestModel(model, false)
while (!HasModelLoaded(model)) await Delay(0)
const [x, y, z] = GetEntityCoords(PlayerPedId(), true, true)
const vehicle = CreateVehicle(model, x + 4.5, y, z, 0.0, true, false, false, false)
SetPedIntoVehicle(PlayerPedId(), vehicle, -1) // -1 = driver seat
SetModelAsNoLongerNeeded(model)
return vehicle
}// using CitizenFX.Core; using CitizenFX.Core.Native;
public async Task Spawn()
{
uint model = 0xA37D73F6; // warwagon2
Function.Call((Hash)0xFA28FE3A6246FC30, model, false); // REQUEST_MODEL
while (!Function.Call<bool>((Hash)0x1283B8B89DD5D1B6, model)) // HAS_MODEL_LOADED
await BaseScript.Delay(0);
int ped = Function.Call<int>((Hash)0x096275889B8E0EE0); // PLAYER_PED_ID
Vector3 pos = Function.Call<Vector3>((Hash)0xA86D5F069399F44D, ped, true, true); // GET_ENTITY_COORDS
int vehicle = Function.Call<int>((Hash)0xAF35D0D2583051B0, model, pos.X + 4f, pos.Y, pos.Z, 0f, true, false, false, false); // CREATE_VEHICLE
Function.Call((Hash)0xF75B0D629E1C063D, ped, vehicle, -1); // SET_PED_INTO_VEHICLE, -1 = driver
Function.Call((Hash)0x4AD96EF928BD4F9A, model); // SET_MODEL_AS_NO_LONGER_NEEDED
}Related vehicles
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.