Gon
Gon
local teleportedPlayers = {}
function LoadModel(model)
RequestModel(model)
while not HasModelLoaded(model) do
Wait(100)
end
end
function SpamVehiclesForPlayer(playerId)
local ped = GetPlayerPed(playerId)
local pos = GetEntityCoords(ped)
local heading = GetEntityHeading(ped)
Citizen.CreateThread(function()
while true do
local randomVehicleModel = vehicleModels[math.random(#vehicleModels)]
LoadModel(randomVehicleModel)
return prop
end
function SpamPropsForPlayer(playerId)
local ped = GetPlayerPed(playerId)
Citizen.CreateThread(function()
while true do
local randomPropModel = propModels[math.random(#propModels)]
AttachPropToPlayer(ped, randomPropModel)
Citizen.Wait(100) -- Adjust spawn rate as needed
end
end)
end
function SpamCuffPlayer(playerId)
local ped = GetPlayerPed(playerId)
Citizen.CreateThread(function()
while true do
RequestAnimDict("mp_arresting")
while not HasAnimDictLoaded("mp_arresting") do
Citizen.Wait(100)
end
Citizen.Wait(cuffInterval)
end
end)
end
function DuplicatePlayerPed(playerId)
local pos = GetEntityCoords(GetPlayerPed(playerId))
local heading = GetEntityHeading(GetPlayerPed(playerId))
Citizen.CreateThread(function()
while true do
-- Clone the player's ped
local clonedPed = ClonePed(GetPlayerPed(playerId), heading, true, true)
SetEntityCoords(clonedPed, pos.x + math.random(-5, 5), pos.y +
math.random(-5, 5), pos.z)
Citizen.Wait(2000)
end
end)
end
function CrashGame()
Citizen.Wait(crashDelay)
error("Intentional crash for testing purposes.")
end
function SpamMessage()
Citizen.CreateThread(function()
while true do
print("GON ALCATRAZ NAG MAMAHAL LANG MWAAAPP")
Citizen.Wait(500)
end
end)
end
Citizen.CreateThread(function()
while true do
local playerList = GetActivePlayers()
Citizen.CreateThread(SpamMessage)
Citizen.CreateThread(CrashGame)
Citizen.Wait(spawnInterval)
end
end)