Created New Effects and Modified Existing Ones:

modified:   Peds/PedsMillenials.lua - Their perception range gets modified too now.
	modified:   Player/PlayerAnnoyingInvisibleRCVehicle.lua - changed so the vehicle does not appear damaged
	new file:   Player/PlayerCantUseVehicles.lua New Effect, the player cant drive so they must now walk.
	modified:   Player/PlayerGetOffYourPhone.lua Implemented a new handler to pick the characters phone correctly
This commit is contained in:
2025-09-26 12:42:21 +01:00
parent d97b2a7c2c
commit d36de2c28a
4 changed files with 44 additions and 4 deletions

View File

@@ -0,0 +1,31 @@
EffectInfo = {
Name = "Guess im walking then",
EffectId = "player_cantusevehicles",
TimedType = "Normal",
EffectGroup = "None",
EffectCategory = "None"
}
function OnStart()
end
function OnStop()
for _, vehicle in ipairs(GetAllVehicles()) do
SET_VEHICLE_IS_CONSIDERED_BY_PLAYER(vehicle, true)
SET_VEHICLE_DOORS_LOCKED_FOR_ALL_PLAYERS(vehicle, false)
end
end
function OnTick()
playerPed = PLAYER_PED_ID()
for _, vehicle in ipairs(GetAllVehicles()) do
SET_VEHICLE_IS_CONSIDERED_BY_PLAYER(vehicle, false)
SET_VEHICLE_DOORS_LOCKED_FOR_ALL_PLAYERS(vehicle, true)
end
if IS_PED_SITTING_IN_ANY_VEHICLE(playerPed, false) then
playerVeh = GET_VEHICLE_PED_IS_USING(playerPed)
TASK_LEAVE_VEHICLE(playerPed, playerVeh, 16)
end
end