Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Rage;
- [assembly: Rage.Attributes.Plugin("SeatBelt", Description = "Simple Seatbelt plugin", Author = "TheMoni")]
- namespace Seatbelt
- {
- public class Something
- {
- private bool seatbeltOn = false;
- public void Main()
- {
- if (Game.IsKeyDown(System.Windows.Forms.Keys.Z))
- {
- if (Game.LocalPlayer.Character.CurrentVehicle.HasDriver)
- {
- seatbeltOn = !seatbeltOn;
- if (seatbeltOn)
- {
- Game.LocalPlayer.Character.CanBePulledOutOfVehicles = false;
- Game.DisplayNotification("Seatbelt ON");
- }
- else
- {
- Game.LocalPlayer.Character.CanBePulledOutOfVehicles = true;
- Game.DisplayNotification("Seatbelt OFF");
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment