Skip to content

Commit

Permalink
Update server.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
btwlouis authored Jul 28, 2020
1 parent c7c3dab commit 6709cab
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions server.lua
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
ESX = nil

TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)

RegisterCommand("announce", function(source, args)
local argString = table.concat(args, " ")
if argString ~= nil then
TriggerClientEvent('notificationsn', -1, "#eb4034", "ANKÜNDIGUNG", argString)
TriggerClientEvent('notifications', -1, "#eb4034", "ANKÜNDIGUNG", argString)
end
end, true)

RegisterCommand("id", function(source, args)
TriggerClientEvent('notifications', source, "#eb4034", "ANKÜNDIGUNG", "Deine ID ist: " .. source)
end, false)
end, false)

0 comments on commit 6709cab

Please sign in to comment.