[Release] Police Vehicle Weapon Deleter

Presentation :

The “Police Vehicle Weapon Deleter” is a simple script that delete the give of weapon when you’re entering in a police vehicle. This script allows cops to get these weapons by a WhiteList system in server.lua (Steam ID 64).
Also, if the player already have the weapon before he is inside the police vehicle, the weapon wouldn’t be deleted.

Setup :

  • Download the script from here or here
  • Drag and drop the folder inside the .rar into your “resources” folder
  • Start the resource !

For any problem with this script, you can contact me here : https://discord.gg/Ysfj8yU

4 Likes

For remove wapon in police vehicle use :
DisablePlayerVehicleRewards(playerId)

3 Likes

Why is all the weapons removed from people when they exit the server? Where is this removed?

Should i put it somewhere

1 Like

what does this do? im kinda confused

mee to im kinda confused

SemArmasReward.rar (354 Bytes)

__resource.lua


client_scripts {
	'client.lua'
}

client.lua


Citizen.CreateThread(function()
	while true do
		Citizen.Wait(1)
		id = PlayerId()
		DisablePlayerVehicleRewards(id)	
	end
end)

This disable in all vehicles, not only on police vehicles.

21 Likes

not working :frowning:

Hey Dude! can you please send me the hole script :smile: i dont get it im to lazy xd

This script makes it to when you enter a police car (not an addon, but a replace or NPC) you get a weapon, This script makes it so you don’t get the weapon, its disables that section of code.

It means when you arrest someone, or give them a ride in your car, they don’t get weapons.

2 Likes

thanks

client.lua

Citizen.CreateThread(function()

local id = PlayerId()

while true do

    Citizen.Wait(1)

    DisablePlayerVehicleRewards(id)

end

end)

__resource.lua

client_scripts {
‘client.lua’
}