Compare commits
2 Commits
0f48341ad7
...
0b4fb81ed3
Author | SHA1 | Date | |
---|---|---|---|
0b4fb81ed3 | |||
e58f8c7028 |
26
Peds/PedsClowningAround.lua
Normal file
26
Peds/PedsClowningAround.lua
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
EffectInfo = {
|
||||||
|
Name = "Clowning Around",
|
||||||
|
EffectId = "peds_clowningaround",
|
||||||
|
TimedType = "None",
|
||||||
|
EffectGroup = "_group_trafficspawner",
|
||||||
|
EffectCategory = "TrafficSpawner"
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function OnStart()
|
||||||
|
clownVanHash = GET_HASH_KEY("speedo2")
|
||||||
|
SetSurroundingPedsInVehicles(clownVanHash, 0)
|
||||||
|
|
||||||
|
playerPed = PLAYER_PED_ID()
|
||||||
|
|
||||||
|
coords = GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(playerPed, 0, 10, 0)
|
||||||
|
heading = GET_ENTITY_HEADING(playerPed)
|
||||||
|
van = CreateTempVehicle(clownVanHash, coords.x, coords.y, coords.z, heading)
|
||||||
|
TASK_WARP_PED_INTO_VEHICLE(playerPed, van, -1)
|
||||||
|
end
|
||||||
|
|
||||||
|
function OnStop()
|
||||||
|
end
|
||||||
|
|
||||||
|
function OnTick()
|
||||||
|
end
|
20
Player/PlayerGetOffYourPhone.lua
Normal file
20
Player/PlayerGetOffYourPhone.lua
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
EffectInfo = {
|
||||||
|
Name = "Get Off Your Phone",
|
||||||
|
EffectId = "player_getoffyourphone",
|
||||||
|
TimedType = "Normal",
|
||||||
|
EffectGroup = "None",
|
||||||
|
EffectCategory = "None"
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function OnStart()
|
||||||
|
end
|
||||||
|
|
||||||
|
function OnStop()
|
||||||
|
end
|
||||||
|
|
||||||
|
function OnTick()
|
||||||
|
playerPed = PLAYER_PED_ID()
|
||||||
|
if IS_PAUSE_MENU_ACTIVE() or IS_PLAYER_SWITCH_IN_PROGRESS() or IS_PLAYER_DEAD(PLAYER_ID()) or DOES_ENTITY_EXIST(playerPed) ~= true then return end
|
||||||
|
CREATE_MOBILE_PHONE(0)
|
||||||
|
end
|
Reference in New Issue
Block a user