Spawning a model of weapon.img

Wiebrendh

So, i want to spawn a .wdr from the weapon.img, does not matter which item. How do i do this? I looked trough the native functions, and found: CREATE_OBJECT but i could not figure that out because it needed an intenger value for the object model.. Thanks in advance!

i forget but i think i use the hexadecimal hash for the glock in my example

GTA.Native.Pointer handlePointer = typeof(int);//this will store the object handle which is an integer
GTA.Native.Function.Call("CREATE_OBJECT", 0xFA292061, somePos.X, somePos.Y, somePos.Z, handlePointer, true);
int objHandle = (int)handlePointer.Value;//now u can only use this object in natives via Function.Call and refer to this handle

it is easier to just use the shdn wrapper for the create object native and then it lets u use the object with the natives wrapped in the GTA.Object class...