Test Busfahrer

This commit is contained in:
Mac_Slash
2020-04-29 15:44:48 +02:00
parent 09b5785d12
commit ae5f135367
13 changed files with 101 additions and 1 deletions

View File

@@ -45,6 +45,15 @@ namespace ReallifeGamemode.Server.Util
}
}
[RemoteEvent("playerWaitsInCheckpoint")]
public void PlayerWaitsInCheckpoint(Player user)
{
if (user.GetUser().JobId == 4)
{
user.TriggerEvent("CLIENT:PlaySound", "jobs/busfahrer/AnfahrtHaltestelle", "wav", 50);
}
}
[RemoteEvent("playerInCheckpoint")]
public void PlayerInCheckpoint(Player user)
{
@@ -66,6 +75,7 @@ namespace ReallifeGamemode.Server.Util
if (user.GetUser().JobId == 4)
{
BusDriverJob.payWage(user, 100);
user.TriggerEvent("CLIENT:PlaySound", "jobs/busfahrer/AbfahrtHaltestelle", "mp3", 50);
}
}
else