-- Spawn a fake player function SpawnFakePlayer() local src = math.random(100000, 999999) -- fake id local name = GetRandomName() local skin = Config.Skins[math.random(#Config.Skins)] local coords = Config.Waypoints[math.random(#Config.Waypoints)]
-- Chat simulation while true do Citizen.Wait(Config.ChatInterval * 1000) if #BotList > 0 then SimulateChatMessage() end end end)
-- Job simulation (requires ESX/QBCore) Config.SimulateJobs = false Config.JobWaypoints = postop = x = 102.4, y = -1287.4, z = 28.2 , taxi = x = 899.2, y = -180.3, z = 73.8
-- Name above head (optional) local blip = AddBlipForEntity(ped) SetBlipSprite(blip, 1) SetBlipColour(blip, 2) BeginTextCommandSetBlipName("STRING") AddTextComponentSubstringPlayerName(name) EndTextCommandSetBlipName(blip)
print("^2[FakePlayer]^7 Spawned: " .. name) end
-- Predefined waypoints (only if Movement = 'waypoints') Config.Waypoints = x = -1042.23, y = -2740.34, z = 20.0 , -- Legion Square x = -1222.98, y = -907.12, z = 12.0 , -- Vespucci Beach x = 72.54, y = -1939.25, z = 20.75 -- Popular Street
client_scripts 'config.lua', 'client.lua'