Skip to content

DarrenJDocherty/RedM-Witnesses

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RedM-Witnesses

A script that will transform an NPC into a witness when you shoot at other NPCs or players and notify law enforcement.

Dependencies

Instructions

  • Extract download into your resources folder
  • Start the resource in your server.cfg

VORPCore

Do you use VORP core instead of RedemRP? Open the server.lua and replace lines 1-10 with the following event:

RegisterNetEvent("Witness:CheckJob")
AddEventHandler("Witness:CheckJob", function(players, coords)
    for each, player in ipairs(players) do
        TriggerEvent("vorp:getCharacter", player, function(user)
            if user ~= nil then
				if user.job == 'police' then
					TriggerClientEvent("Witness:ToggleNotification", player, coords)
				end
            end
        end)
    end
end)

...and open client.lua and replace line 5 with the following:

TriggerEvent("vorp:Tip", 'A witness needs help!', 3000)

License

You are free to use and edit the source code as you want for personal use.

About

A script that will transform an NPC into a witnesses when you shot at other NPCs or players.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages