Added Effects:
new file: Peds/PedsSetEveryoneIntoRandomVehicle.lua new file: Player/PlayerBankHeist.lua new file: Player/PlayerTPToLastVehicle.lua Modified: Weather/WeatherCanadian.lua - reversed a True/False Statement to potentially fix a bug that throws around vehicles when the ped gets a snowman spawned on them.
This commit is contained in:
22
Player/PlayerTPToLastVehicle.lua
Normal file
22
Player/PlayerTPToLastVehicle.lua
Normal file
@@ -0,0 +1,22 @@
|
||||
EffectInfo = {
|
||||
Name = "Teleport to last used vehicle",
|
||||
EffectId = "player_tptolastveh",
|
||||
TimedType = "None",
|
||||
EffectGroup = "None",
|
||||
EffectCategory = "None"
|
||||
|
||||
}
|
||||
|
||||
function OnStart()
|
||||
playerPed = PLAYER_PED_ID()
|
||||
vehicle = GET_LAST_DRIVEN_VEHICLE()
|
||||
if DOES_ENTITY_EXIST(vehicle) and IS_PED_DEAD_OR_DYING(playerPed,0) then
|
||||
SET_PED_INTO_VEHICLE(playerPed, vehicle, -1)
|
||||
end
|
||||
end
|
||||
|
||||
function OnStop()
|
||||
end
|
||||
|
||||
function OnTick()
|
||||
end
|
Reference in New Issue
Block a user