Fixed ooc being proximity only, fixes #11

This commit is contained in:
ElPumpo
2018-05-07 22:29:53 +02:00
parent 191f12f5e0
commit 1ed507693d
6 changed files with 16 additions and 7 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ AddEventHandler('chatMessage', function(source, name, msg)
if command == "/ooc" then
CancelEvent()
TriggerClientEvent('esx_rpchat:sendProximityMessage', -1, source, _U('ooc_prefix', name), string.sub(msg, 5), { 128, 128, 128 })
TriggerClientEvent('chatMessage', -1, _U('ooc_prefix', name), { 128, 128, 128 }, string.sub(msg, 5))
elseif command == "/twt" then
CancelEvent()
TriggerClientEvent('chatMessage', -1, _U('twt_prefix', name), { 0, 153, 204 }, string.sub(msg, 5))