cs_miltonandrews
cs_miltonandrews is a RedM ped model, a cutscene character. It has 2 outfit presets (index 0 to 1) for EquipMetaPedOutfitPreset. Its model hash is 0x01004B26 (16796454 as a signed integer). After CreatePed, give it an outfit or it spawns invisible.
Hash and facts
| Name | cs_miltonandrews |
|---|---|
| Hash (hex) | 0x01004B26 |
| Signed | 16796454 |
| Unsigned | 16796454 |
| Outfit presets | 2 (index 0 to 1) |
Spawn it
local model = 0x01004B26 -- cs_miltonandrews
RequestModel(model, false)
while not HasModelLoaded(model) do Wait(0) end
local coords = GetEntityCoords(PlayerPedId(), true, true)
local ped = CreatePed(model, coords.x + 2.0, coords.y, coords.z, 0.0, true, true, false, false)
-- RedM peds spawn invisible until they get an outfit
Citizen.InvokeNative(0x283978A15512B2FE, ped, true) -- _SET_RANDOM_OUTFIT_VARIATION
-- or a fixed outfit preset, index 0 to 1:
-- Citizen.InvokeNative(0x77FF8D35EEC6BBC4, ped, 0, false) -- _EQUIP_META_PED_OUTFIT_PRESET
SetModelAsNoLongerNeeded(model)const Delay = (ms) => new Promise((r) => setTimeout(r, ms))
async function spawn() {
const model = 16796454 // 0x01004B26, cs_miltonandrews
RequestModel(model, false)
while (!HasModelLoaded(model)) await Delay(0)
const [x, y, z] = GetEntityCoords(PlayerPedId(), true, true)
const ped = CreatePed(model, x + 2.5, y, z, 0.0, true, true, false, false)
// RedM peds spawn invisible until they get an outfit
Citizen.invokeNative("0x283978A15512B2FE", ped, true) // _SET_RANDOM_OUTFIT_VARIATION
// or a fixed outfit preset, index 0 to 1:
// Citizen.invokeNative("0x77FF8D35EEC6BBC4", ped, 0, false) // _EQUIP_META_PED_OUTFIT_PRESET
SetModelAsNoLongerNeeded(model)
return ped
}// using CitizenFX.Core; using CitizenFX.Core.Native;
public async Task Spawn()
{
uint model = 0x01004B26; // cs_miltonandrews
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 npc = Function.Call<int>((Hash)0xD49F9B0955C367DE, model, pos.X + 2f, pos.Y, pos.Z, 0f, true, true, false, false); // CREATE_PED
// RedM peds spawn invisible until they get an outfit
Function.Call((Hash)0x283978A15512B2FE, npc, true); // _SET_RANDOM_OUTFIT_VARIATION
// or a fixed outfit preset, index 0 to 1:
// Function.Call((Hash)0x77FF8D35EEC6BBC4, npc, 0, false); // _EQUIP_META_PED_OUTFIT_PRESET
Function.Call((Hash)0x4AD96EF928BD4F9A, model); // SET_MODEL_AS_NO_LONGER_NEEDED
}Related peds
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.