mp_u_m_m_nat_farmer_04
mp_u_m_m_nat_farmer_04 is a RedM ped model, a multiplayer (Red Dead Online) character. It has 1 outfit preset (index 0 to 0) for EquipMetaPedOutfitPreset. Its model hash is 0xEFDC82DB (-270761253 as a signed integer). After CreatePed, give it an outfit or it spawns invisible.
Hash and facts
| Name | mp_u_m_m_nat_farmer_04 |
|---|---|
| Hash (hex) | 0xEFDC82DB |
| Signed | -270761253 |
| Unsigned | 4024206043 |
| Outfit presets | 1 (index 0 to 0) |
Spawn it
local model = 0xEFDC82DB -- mp_u_m_m_nat_farmer_04
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 0:
-- 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 = -270761253 // 0xEFDC82DB, mp_u_m_m_nat_farmer_04
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 0:
// 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 = 0xEFDC82DB; // mp_u_m_m_nat_farmer_04
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 0:
// 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.