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
24 lines
522 B
Lua
24 lines
522 B
Lua
EffectInfo = {
|
|
Name = "Millenials",
|
|
EffectId = "peds_millenials",
|
|
TimedType = "Normal",
|
|
EffectGroup = "None",
|
|
EffectCategory = "None"
|
|
|
|
}
|
|
|
|
function OnStart()
|
|
end
|
|
|
|
function OnStop()
|
|
end
|
|
|
|
function OnTick()
|
|
for _, ped in ipairs(GetAllPeds()) do
|
|
if ped ~= PLAYER_PED_ID() and IS_PED_RUNNING_MOBILE_PHONE_TASK(ped) == false and IS_PED_IN_ANY_VEHICLE(ped, false) == false then
|
|
TASK_USE_MOBILE_PHONE(ped, 1, 2)
|
|
SET_PED_HIGHLY_PERCEPTIVE(ped, false)
|
|
end
|
|
end
|
|
end
|