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:
@@ -16,7 +16,14 @@ end
|
||||
function OnTick()
|
||||
playerPed = PLAYER_PED_ID()
|
||||
if not DOES_ENTITY_EXIST(playerPed) or IS_PLAYER_SWITCH_IN_PROGRESS() or IS_PED_DEAD_OR_DYING(playerPed,0) then return end
|
||||
if not IS_PED_RUNNING_MOBILE_PHONE_TASK(playerPed) then
|
||||
TASK_USE_MOBILE_PHONE_TIMED(playerPed, 60)
|
||||
phoneType = 0
|
||||
if IS_PED_MODEL(playerPed, GET_HASH_KEY("player_two")) then
|
||||
phoneType = 1
|
||||
end
|
||||
|
||||
if IS_PED_MODEL(playerPed, GET_HASH_KEY("player_one")) then
|
||||
phoneType = 2
|
||||
end
|
||||
|
||||
CREATE_MOBILE_PHONE(phoneType)
|
||||
end
|
||||
|
Reference in New Issue
Block a user