Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public UInt32 spawnEntity(String ModelName, Single X, Single Y, Single Z, Single Yaw = 0, Single Pitch = 0, Single Roll = 0)
- {
- UInt32 Ent = G_Spawn();
- Console.Write(Ent + "\n");
- DEX.Extension.WriteFloat((Ent + 0x134), X);
- DEX.Extension.WriteFloat((Ent + 0x13C), Y);
- DEX.Extension.WriteFloat((Ent + 0x138), Z);
- DEX.Extension.WriteFloat((Ent + 0x140), Yaw);
- DEX.Extension.WriteFloat((Ent + 0x144), Pitch);
- DEX.Extension.WriteFloat((Ent + 0x148), Roll);
- RPC.Call(Offsets.G_SetModel, Ent, ModelName);
- RPC.Call(Offsets.SP_Script_Model, Ent);
- Thread.Sleep(20);
- return Ent;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement