Post: C# How to spawn a vehicle "G_SpawnVehicle"
11-01-2017, 04:41 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hi all,

MW3 1.24 How to spawn a vehicle.
Credits to my buddy xCSBKx

With this function you spawn a vehicle with sound.



Main Function:

    
public static int GetNumVehicle()
{
int Count = 0;
for (uint i = 0; i < 9; i++)
{
if (PS3.Extension.ReadInt32(0x01C74980 + (i * 0x43Cool Man (aka Tustin)) != 0)
{
Count++;
}
}
return Count;
}

public static uint G_SpawnVehicle(uint Client, float[] Origin, float[] Angles, string Vehicle = "littlebird_mp", string Model = "vehicle_little_bird_armed")
{
if (string.IsNullOrEmpty(Vehicle))
Vehicle = "littlebird_mp";
int NumVehicle = GetNumVehicle();
if (NumVehicle != Cool Man (aka Tustin)
{
uint Entity = (uint)RPC.Call(0x001C058C);
RPC.Call(0x001C0B14, Entity, Origin);
RPC.Call(0x001C0D74, Entity, Angles);
RPC.Call(0x00320D98, Entity, 0x00fca280 + (Client * 0x280), Vehicle, Model);
return Entity;
}
return 0;
}


Have Fun !!
02-03-2018, 11:07 AM #2
how do I use this please do I use debugger
02-03-2018, 05:11 PM #3
Originally posted by AzeyCFW View Post
how do I use this please do I use debugger


Add this to a rtm tool to spawn a vehicle. Can 't use only a debugger.
02-03-2018, 06:25 PM #4
ok thanks mate ill do that
02-04-2018, 09:57 PM #5
Originally posted by AzeyCFW View Post
ok thanks mate ill do that


If you add the control function i posted earlier on the instant predator then you can make it flyable Winky Winky. Have fun.
02-11-2018, 01:23 PM #6
Thanks Smile

The following user thanked User43564354 for this useful post:

mrdarkblue

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo