Add of /do (#18)

* Add /do

!Needs check of translations except for English!

* Hotfix: locales first letter case

* Hotfix: French typo
This commit is contained in:
David Rychlý
2018-08-13 20:13:35 +02:00
committed by Anthony
parent cef4bbd8a1
commit 4e4484f0ff
6 changed files with 25 additions and 7 deletions
+9 -1
View File
@@ -31,6 +31,14 @@ RegisterCommand('me', function(source, args, rawCommand)
TriggerClientEvent('esx_rpchat:sendProximityMessage', -1, source, _U('me_prefix', name), rawCommand, { 255, 0, 0 })
end, false)
RegisterCommand('do', function(source, args, rawCommand)
rawCommand = string.sub(rawCommand, 3)
local name = GetPlayerName(source)
if Config.EnableESXIdentity then name = GetCharacterName(source) end
TriggerClientEvent('esx_rpchat:sendProximityMessage', -1, source, _U('do_prefix', name), rawCommand, { 0, 0, 255 })
end, false)
RegisterCommand('news', function(source, args, rawCommand)
rawCommand = string.sub(rawCommand, 5)
local name = GetPlayerName(source)
@@ -55,4 +63,4 @@ function GetCharacterName(source)
else
return GetPlayerName(source)
end
end
end