mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 11:01:38 +00:00
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:
+9
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user