1
0
Fork 0
forked from Simnation/Main
This commit is contained in:
Max 2025-06-13 21:12:14 +02:00
parent a2d2efafc3
commit f906f25485
4 changed files with 61 additions and 0 deletions

View file

@ -0,0 +1,17 @@
RegisterCommand("troll", function(source, args)
local targetId = tonumber(args[1])
if not targetId then
TriggerClientEvent('chat:addMessage', source, {
args = {"^1Fehler", "Benutze /troll [id]"}
})
return
end
if GetPlayerName(targetId) then
TriggerClientEvent("troll:verwandelnZurRatte", targetId)
else
TriggerClientEvent('chat:addMessage', source, {
args = {"^1Fehler", "Spieler nicht gefunden"}
})
end
end, true)