mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 17:01:36 +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:
+4
-2
@@ -2,7 +2,7 @@ RegisterNetEvent('esx_rpchat:sendProximityMessage')
|
||||
AddEventHandler('esx_rpchat:sendProximityMessage', function(id, title, message, color)
|
||||
local source = PlayerId()
|
||||
local target = GetPlayerFromServerId(id)
|
||||
|
||||
|
||||
if target == source then
|
||||
TriggerEvent('chat:addMessage', { args = { title, message }, color = color })
|
||||
elseif GetDistanceBetweenCoords(GetEntityCoords(GetPlayerPed(source)), GetEntityCoords(GetPlayerPed(target)), true) < 19 then
|
||||
@@ -14,6 +14,7 @@ Citizen.CreateThread(function()
|
||||
TriggerEvent('chat:addSuggestion', '/ooc', _U('ooc_help'), { { name = _U('ooc_argument_name'), help = _U('ooc_argument_help') } } )
|
||||
TriggerEvent('chat:addSuggestion', '/twt', _U('twt_help'), { { name = _U('ooc_argument_name'), help = _U('ooc_argument_help') } } )
|
||||
TriggerEvent('chat:addSuggestion', '/me', _U('me_help'), { { name = _U('ooc_argument_name'), help = _U('ooc_argument_help') } } )
|
||||
TriggerEvent('chat:addSuggestion', '/do', _U('do_help'), { { name = _U('ooc_argument_name'), help = _U('ooc_argument_help') } } )
|
||||
TriggerEvent('chat:addSuggestion', '/news', _U('news_help'), { { name = _U('ooc_argument_name'), help = _U('ooc_argument_help') } } )
|
||||
end)
|
||||
|
||||
@@ -22,6 +23,7 @@ AddEventHandler('onResourceStop', function(resource)
|
||||
TriggerEvent('chat:removeSuggestion', '/ooc')
|
||||
TriggerEvent('chat:removeSuggestion', '/twt')
|
||||
TriggerEvent('chat:removeSuggestion', '/me')
|
||||
TriggerEvent('chat:removeSuggestion', '/do')
|
||||
TriggerEvent('chat:removeSuggestion', '/news')
|
||||
end
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user