[Release] DriveByLimit V 1.1

DriveByLimit

Another RP resource :see_no_evil:
The following resource is just a little script, that makes you unable to shoot when you are over the limit of 30 km/h. You can change it to mph in the files if you want to. Yeah and thats all.

Version
1.0 Everything works as intended
1.1 Added veh check

Install
/Like any other resourse

  • Download the latest version from here.
  • Extract into it’s own folder (i.e. resources/DriveByLimit, can be wherever you like) Case sensitive btw.
  • Configure the server.cfg file
  • Start the server
Short Gif

https://gyazo.com/1c31578ff40264ce3b4053e991464aa8

Known Issues

None right now, but if you find any. Please don’t hesitate to ask me or inform me

18 Likes

Noice work

1 Like

Magical Work my friend :+1:

1 Like

Nice work, ma’ friend!

1 Like

Nice! Keep up the good work!

1 Like

Great script, helps well with realism

1 Like

That was also the thought to the script. Enjoying the comments :slightly_smiling_face:

1 Like

Awesome Resource.
Small releases like this make our FiveM Experience get better and better.
Keep it up. :mascot:

1 Like

Looks Nice. Good Work

1 Like

Very nice, thanks for this

1 Like

1 Thing I came across, when you are in any armored vehicle, or plane or helicopter. It get’s also disabled.

1 Like
Citizen.CreateThread(function()
	while true do
		Citizen.Wait(0)
		local model = GetDisplayNameFromVehicleModel(GetEntityModel(GetVehiclePedIsIn(GetPlayerPed(-1))))
		if IsPedInAnyVehicle(GetPlayerPed(-1)) and (model ~= "RIOT2" and model ~= "FIRETRUK" and model ~= "BARRAGE" and model ~= "VALKYRIE") then
			DisableControlAction(0,68,true) -- INPUT_AIM
			DisableControlAction(0,25,true) -- INPUT_VEH_AIM	
			DisableControlAction(0,24,true) -- INPUT_ATTACK
			DisableControlAction(0,257,true) -- INPUT_ATTACK2
		end
		if IsPedInAnyVehicle(GetPlayerPed(-1)) then
			DisableControlAction(0,99,true)
			DisableControlAction(0,100,true)
			DisableControlAction(0,115,true)
			DisableControlAction(0,116,true)
			DisableControlAction(0,117,true)
			DisableControlAction(0,118,true)
			DisableControlAction(0,261,true)
			DisableControlAction(0,262,true)
		end
	end
end)

You can stop damage for car crash player?

I’ll just make an 1.1 version for that. Thanks for reminding me. Just updated the ressource now @Yadiiiig

Is that question for me? I don’t think it has anything to do with my scrip anyway :smiley:

Mange tak m8, Det er et fantastisk script <3

Does this affect the companion?

When we try to use this script the limit limits to the passanger too. Is there a way to fix this?

1 Like

If it passenger, he can do driveby?

You could just make a if statement with GetPedInVehicleSeat and make sure it’s -1 so it’s only the player in the driversseat.