Merge pull request #50 from SMVampire/patch-1

Fix Issues with Very Far Msgs Showing
This commit is contained in:
ESXCrackhead
2021-05-06 12:07:34 -05:00
committed by GitHub
+4 -2
View File
@@ -8,8 +8,10 @@ AddEventHandler('esx_rpchat:sendProximityMessage', function(playerId, title, mes
local playerCoords = GetEntityCoords(playerPed)
local targetCoords = GetEntityCoords(targetPed)
if target == player or #(playerCoords - targetCoords) < 20 then
TriggerEvent('chat:addMessage', {args = {title, message}, color = color})
if target ~= -1 then
if target == player or #(playerCoords - targetCoords) < 20 then
TriggerEvent('chat:addMessage', {args = {title, message}, color = color})
end
end
end)