-- Still WIP!
--paste this one line below "M21_CHOICE_KILLBANE_NOT_UNMASKED = false;"
passenger_activated = 0
--rest of the code
elseif player_action_is_pressed(B_PGDWN) and not SEVEN_PUSHED then
local myride = get_char_vehicle_name(LOCAL_PLAYER)
local driver = vehicle_get_driver(myride)
if (passenger_activated == 0) then
player_force_vehicle_seat(LOCAL_PLAYER, 1)
sandboxplus_message("You are a passenger now.\nFind a vehicle, enter it and wait for a fellow driver. Then tap this keybind again.")
passenger_activated = 1
elseif (passenger_activated == 2) and get_char_vehicle_name(LOCAL_PLAYER) then
player_force_vehicle_seat(LOCAL_PLAYER, 0)
sandboxplus_message("Your followers act aggresively.")
passenger_activated = 1
set_ignore_ai_flag(driver, false)
set_ignore_ai_flag("#FOLLOWER2#", false)
set_ignore_ai_flag("#FOLLOWER3#", false)
set_ignore_ai_flag("#FOLLOWER#", false) --in case of follower's AI problems, change "#FOLLOWER#" to "#FOLLOWER#1" - thank you, daven!
elseif (passenger_activated == 2) and not get_char_vehicle_name(LOCAL_PLAYER) then
sandboxplus_message("Your're became a driver again. Followers act like new ones.")
player_force_vehicle_seat(LOCAL_PLAYER, 1)
passenger_activated = 0
set_ignore_ai_flag(driver, false)
set_ignore_ai_flag("#FOLLOWER2#", false)
set_ignore_ai_flag("#FOLLOWER3#", false)
set_ignore_ai_flag("#FOLLOWER#", false) --in case of follower's AI problems, change "#FOLLOWER#" to "#FOLLOWER#1" - thank you, daven!
else
if get_char_vehicle_name(LOCAL_PLAYER) and (driver == "#FOLLOWER#") then
vehicle_suppress_npc_exit(myride, true)
--ai_set_personality("#FOLLOWER#", "civilian normal")
set_ignore_ai_flag(driver, true)
set_ignore_ai_flag("#FOLLOWER2#", true)
set_ignore_ai_flag("#FOLLOWER3#", true)
set_ignore_ai_flag("#FOLLOWER#", true) --in case of follower's AI problems, change "#FOLLOWER#" to "#FOLLOWER#1" - thank you, daven!
vehicle_set_crazy(myride, true)
vehicle_max_speed(myride, 70.0)
sandboxplus_message("Let's roll! Homies drive quite well but don't shoot.")
passenger_activated = 2
else
sandboxplus_message("You're not in a car or you don't have a driver yet.")
end
end
SEVEN_PUSHED = true
elseif player_action_is_pressed(B_RIGHT) and not SEVEN_PUSHED then
set_animation_state(LOCAL_PLAYER, "vehicle surf stand")
set_animation_state("#FOLLOWER#", "dance a")
set_animation_state("#FOLLOWER2#", "dance b")
set_animation_state("#FOLLOWER3#", "dance c")
sandboxplus_message("Party time!")
delay(60.0) --tweak its value for longer or shorter effect
clear_animation_state(LOCAL_PLAYER)
clear_animation_state("#FOLLOWER#")
clear_animation_state("#FOLLOWER2#")
clear_animation_state("#FOLLOWER3#")
SEVEN_PUSHED = true