Skip to content

Commit

Permalink
Update server.lua
Browse files Browse the repository at this point in the history
Finished updating to finalize moving all the language for messages to the config.lua
  • Loading branch information
ResqDiver1317 authored Mar 5, 2022
1 parent 7259c6a commit c06aa7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ RegisterServerEvent('robnpc:getcash', function()
end
TriggerClientEvent("chat:addMessage", player, {
color = {0, 255, 100},
args = {"RobNPC:", " You stole $" ..amount..}
args = {Config.StealAmountTitle, Config.StealAmountMessage ..amount.. " "}
})
end)

RegisterServerEvent('robnpc:muggingAlert')
AddEventHandler('robnpc:muggingAlert', function(street1, street2, reportcoords)
TriggerClientEvent("chat:addMessage", -1, {
color = {255, 100, 100},
args = {"POLICE ALERT:", " Reported Mugging near ~w~ "..street1.." and "..street2, reportcoords}
args = {Config.AlertTitle, Config.AlertMessage..street1.." & "..street2, reportcoords}
})
--TriggerClientEvent("muggingNotify", -1, "~r~Reported Mugging by ~r~near~w~ "..street1.." and "..street2, coords)
end)
Expand All @@ -46,7 +46,7 @@ RegisterServerEvent('robnpc:muggingAlertS1')
AddEventHandler('robnpc:muggingAlertS1', function(street1, reportcoords)
TriggerClientEvent("chat:addMessage", -1, {
color = {255, 100, 100},
args = {"POLICE ALERT:", " Reported Mugging near ~w~ "..street1, reportcoords}
args = {Config.AlertTitle, Config.AlertMessage ..street1, reportcoords}
})
--TriggerClientEvent("muggingNotify", -1, "~r~Reported Mugging by ~r~near~w~ "..street1, coords)
end)
Expand Down

0 comments on commit c06aa7d

Please sign in to comment.