Hello, I created this script so players have the ability to actually slash peoples tires with the melee weapons (Knife, Machete, Switchblade, and a few others)
Preview Thanks to @godgutten
How To Use?
Pull out a weapon that is allowed to slash tires in the script (ALL SHARP MELEE WEAPONS)
Walk up to the tire.
Press E.
How To Install?
Download GitHub - xander1998/slashtires: FiveM Adds the ability to slash peoples tires without shooting them.
Take the resource file and drop it into your resources folder.
Add start [resource name] in the server.cfg
28 Likes
Still not using native help text stuff, me saddo
1 Like
IceHax
September 8, 2018, 6:26pm
3
would be cool to have a video.
I really should. Don’t be saddo
oMarkez
September 8, 2018, 6:27pm
5
I love you’re releases, some of them are small details like the police shield & the saw script but together they make the game more immersive, and overall just fun to play.
Keep it up! I’ll gladly test it for you btw
I don’t really make videos… BUT it does animate and stuff.
Awesome. I really appreciate it
oMarkez
September 8, 2018, 6:39pm
8
Just tested it with a buddy, can’t seem to slash his tires while he is a vehicle, but I can slash peds tires.
I can also slash the tires of a rhino tank xD
XD. Didn’t even know tires were on the rhino tank LOL
Can you slash his tires after he leaves the vehicle?
oMarkez
September 8, 2018, 6:41pm
10
Yes, I can slash the tires if he leaves the vehicle
Alright. I am gonna see if I can fix this. One second.
Probably because your client isnt the owner of the vehicle, make sure you attempt to get ownership of the vehicle and that should possibly fix it.
I was just gonna get the driver of the vehicle and trigger a server event to trigger a client event on the driver to explode the tire?
Setro
September 8, 2018, 6:59pm
14
Unnecessarily complex. Couldn’t you just use the GET_CLOSEST_VEHICLE
native, and set that is the targeted vehicle?
Wut? It’s just using a native to request ownership? (I’m pretty sure)
GetClosestVehicle does not return all types of vehicles.
Also I wan’t the player somewhat facing the vehicle to get the option which is why I used a raycast.
1 Like
You can request ownership but I have never had it keep the ownership so by the time the explode tire is called the driver is the owner again.
Its not IMPOSSIBLE but I have had issues in the past with that.
I believe I have fixed the ownership issue for now. Let me know if you guys find any more issues.
Thank you @Jxcob for helping me.
1 Like
Woopi
September 8, 2018, 9:07pm
21
also had an issue with GetClosestVehicle so your method is better