w_rifle_springfield01_grip2
w_rifle_springfield01_grip2 is a RedM object (prop) model. It ships in the models folder of the rpf_weapons archive. Its model hash is 0x40B6BBF1 (1085717489 as a signed integer). Load it with RequestModel, then place it with CreateObject.
Hash and facts
| Name | w_rifle_springfield01_grip2 |
|---|---|
| Hash (hex) | 0x40B6BBF1 |
| Signed | 1085717489 |
| Unsigned | 1085717489 |
| Folder | models |
| Archive | rpf_weapons.rpf |
Spawn it
local model = 0x40B6BBF1 -- w_rifle_springfield01_grip2
RequestModel(model, false)
while not HasModelLoaded(model) do Wait(0) end
local coords = GetEntityCoords(PlayerPedId(), true, true)
local object = CreateObject(model, coords.x, coords.y + 1.5, coords.z, true, true, false, false, false)
PlaceObjectOnGroundProperly(object, false)
SetModelAsNoLongerNeeded(model)const Delay = (ms) => new Promise((r) => setTimeout(r, ms))
async function spawn() {
const model = 1085717489 // 0x40B6BBF1, w_rifle_springfield01_grip2
RequestModel(model, false)
while (!HasModelLoaded(model)) await Delay(0)
const [x, y, z] = GetEntityCoords(PlayerPedId(), true, true)
const object = CreateObject(model, x, y + 1.5, z, true, true, false, false, false)
PlaceObjectOnGroundProperly(object, false)
SetModelAsNoLongerNeeded(model)
return object
}// using CitizenFX.Core; using CitizenFX.Core.Native;
public async Task Spawn()
{
uint model = 0x40B6BBF1; // w_rifle_springfield01_grip2
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 obj = Function.Call<int>((Hash)0x509D5878EB39E842, model, pos.X, pos.Y + 1.5f, pos.Z, true, true, false, false, false); // CREATE_OBJECT
Function.Call((Hash)0x58A850EAEE20FAA3, obj, false); // PLACE_OBJECT_ON_GROUND_PROPERLY
Function.Call((Hash)0x4AD96EF928BD4F9A, model); // SET_MODEL_AS_NO_LONGER_NEEDED
}Related objects
- w_rifle_springfield01_grip1
- w_rifle_springfield01_grip3
- w_rifle_springfield01_sight1
- w_rifle_springfield01_sight2
- w_rifle_springfield01_wrap1
- w_rifle_springfield01
- w_rifle_boltaction01_grip2
- w_rifle_carcano01_grip2
- w_rifle_rollingblock01_grip2
- w_rifle_springfield01_wrap2
- w_rifle_springfield01_wrap3
- w_rifle_springfield01_wrap4
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.