[FREE] [Discontinued] Brezel Server Setting

Hello FiveM Community i made a Script for you
this Script allows you to :

  • Disable/Enable NPC’s
  • Disable/Enable AntiVdm
  • Disable/Enable DisabledDispatch
  • Disable/Enable Firstperson Shoot
  • Disable/Enable Hide GTA Ammo HUD
  • Disable/Enable Vehicle Blacklist
  • Disable/Enable Weapon Blacklist
  • Disable/Enable AntiDriveBy
  • Much More

INFORMATION : Some Scripts are not mine !

Download
brezel_settings_updated.zip (5.8 KB)
UPDATED 24/5/22

Future Updates :

  • NoVehicleWeapon
Code is accessible Yes
Subscription-based No
Lines (approximately) 200
Requirements FXserver
Support Yes
4 Likes

Can’t view it now but is NoVehicleWeapons included?

its planned in future :slight_smile: (future means maybe in 2hours or 1 day)

1 Like

Is there a way to make it so some vehicles are accessible with a certain ace permission?

Good idea

Yeah I just figured there was no point in the blacklists unless there was some sort of way in whitelisting them.

how does the blacklist work

You put it on true and then you add cars to the list below

The cars will not get spawned or you cant spawn them

why did you do that

Citizen.CreateThread(function()
	while true do
		Wait(1)

		playerPed = GetPlayerPed(-1)
		car = GetVehiclePedIsIn(playerPed, false)
		if car then
            if Config.DisableDriveBy then
				if GetPedInVehicleSeat(car, -1) == playerPed then
					SetPlayerCanDoDriveBy(PlayerId(), false)
				elseif passengerDriveBy then
					SetPlayerCanDoDriveBy(PlayerId(), true)
				else
					SetPlayerCanDoDriveBy(PlayerId(), false)
				end
			end
		end
	end
end)

instead of this, because it consumes ms pointlessly even though it is disabled.

Citizen.CreateThread(function()
	if not Config.DisableDriveBy then return end
	while true do
		Wait(1)
		local playerPed = PlayerPedId()
		local car = GetVehiclePedIsIn(playerPed, false)
		if car then
			if GetPedInVehicleSeat(car, -1) == playerPed then
				SetPlayerCanDoDriveBy(PlayerId(), false)
			elseif passengerDriveBy then
				SetPlayerCanDoDriveBy(PlayerId(), true)
			else
				SetPlayerCanDoDriveBy(PlayerId(), false)
			end
		else
			Citizen.Wait(500) --no point running fast while not driving
		end
	end
end)

also PlayerPedId() faster than GetPlayerPed(-1)
I was going to “pull request” on github, but you didn’t upload it to github, so

:slight_smile: Thanks for the information im also a lua starter but i will upload it to github :wink:

i added it to github and uploaded your script

Good script i can recommend it lg sempre

Fivem Crashes when using this script, it loads first but when ingame it stops Loading the Resources and then it crashes, Issue only comes up when you disabled certain stuff in the config.

yes ? do you know which?

i dont know why this problem comes up i will fix this

Thanks for the quick response, you can try to reproduce the crash, in my case i disabled “NoNPC”, “Carblacklist”, “AntiVDM” and “Egoshoot” after disable them, all people will stuck in the section where it loads the scripts for the Server and the game will crash.

I Fixxed it :slight_smile:

1 Like

yes i tested it idk why i will try to fix it

Thanks for the quick fix, but i found a new bug now. When “EgoShooting” is disabled its still the problem that when you shoot with your weapon, that it goes into Ego for that, you can aim without beeing in ego, but when you shoot it zooms in.