RPC - Vehicle Spawn...
 
Notifications
Clear all

RPC - Vehicle Spawner Instant Online

Page 1 / 3

KranK
Posts: 336
Topic starter
(@KranK)
Reputable Member
Joined: 9 years ago

Hey Rivals , and ones again lets do some strike
Well i made this to work in RPC already some time ago and i think its just the time to drop it off xD

Perfectly Working Online Vehicle Spawner !

Note: You must be hooked for it to work

[HIDE]

	int pedID = Hook.Call("PLAYER_PED_ID");
	            int Vehicle;
	            Vector3 coords = Hook.Call("GET_ENTITY_COORDS", pedID);
	            int Hash = Hook.Call("GET_HASH_KEY", Vehicle_List.GetItemText(Vehicle_List.SelectedItem));
	            do
	            {
	                Hook.Call("REQUEST_MODEL", Hash);
	                Application.DoEvents();
	            }
	            while (Hook.Call("HAS_MODEL_LOADED", Hash) != 1);
	            do
	            {
	                Vehicle = Hook.Call("CREATE_VEHICLE", Hash, coords, 0, 1, 0);
	
	                Application.DoEvents();
	            }
	            while (Hook.Call("DOES_ENTITY_EXIST", Vehicle) != 1);
	            Hook.Call("SET_VEHICLE_ENGINE_ON", Vehicle, 1, 1 );
	
	            if (!(Hook.Call("IS_THIS_MODEL_A_HELI", Hook.Call("GET_ENTITY_MODEL", Vehicle)) ? false : !Hook.Call("IS_THIS_MODEL_A_PLANE", Hook.Call("GET_ENTITY_MODEL", Vehicle))))
	            {
	                Hook.Call("SET_HELI_BLADES_FULL_SPEED", Vehicle);
	            }
	
	            Hook.Call("SET_PED_INTO_VEHICLE", pedID, Vehicle, -1);
	            Hook.Call("SET_ENTITY_INVINCIBLE", Vehicle, 1);
	            Hook.Call("SET_MODEL_AS_NO_LONGER_NEEDED", Hash);

[/HIDE]

Reply
11 Replies
LEGACYY
Posts: 2350
(@legacyy)
Noble Member
Joined: 9 years ago

C# Master LOL (y) excellent post

Reply
Vexx
Posts: 609
 Vexx
(@Vexx)
Noble Member
Joined: 10 years ago

Awesome! Keep up the great work KranK

Reply
Cheat Code
Posts: 156
(@cheat-code)
Estimable Member
Joined: 9 years ago

Thanks! :woot: lol

Reply
KranK
Posts: 336
Topic starter
(@KranK)
Reputable Member
Joined: 9 years ago

C# Master LOL (y) excellent post

Awesome! Keep up the great work KranK

Thank you guys 🙂 your support makes me go forward

Reply
Page 1 / 3