Finished tuning system

This commit is contained in:
hydrant
2018-10-22 22:17:03 +02:00
parent 15e1e52b67
commit eb7f50fd54
2 changed files with 11 additions and 4 deletions

View File

@@ -43,5 +43,12 @@ namespace reallife_gamemode.Server.Managers
player.TriggerEvent("showTuningMenu");
}
[RemoteEvent("setVehicleMod")]
public void SetVehicleMod(Client player, int slot, int index)
{
if (index == 0) index--;
player.Vehicle.SetMod(slot, index - 1);
}
}
}