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]