Fivem Fake Player Bot 【Free ✓】
-- Admin command permissions (steam identifier or 'admin') Config.AdminIdentifiers = "steam:110000112345678" -- replace with your own
-- Skins (ped models) Config.Skins = "a_m_y_beachvesp_01", "a_m_y_skater_01", "a_f_y_business_02", "a_m_m_hasjew_01"
local Players = {} local BotList = {} local JoinLeaveTimer = nil -- Helper: random name function GetRandomName() return Config.PlayerNames[math.random(#Config.PlayerNames)] .. "_" .. math.random(100,999) end
-- Optional: delete on resource stop AddEventHandler('onResourceStop', function(resourceName) if GetCurrentResourceName() == resourceName then for _, ped in pairs(FakePeds) do if DoesEntityExist(ped) then DeleteEntity(ped) end end end end) Locales = bot_joined = "~g~%s has joined the server.", bot_left = "~r~%s has left the server.", chat_prefix = "[BOT]" Fivem Fake Player Bot
-- Name above head (optional) local blip = AddBlipForEntity(ped) SetBlipSprite(blip, 1) SetBlipColour(blip, 2) BeginTextCommandSetBlipName("STRING") AddTextComponentSubstringPlayerName(name) EndTextCommandSetBlipName(blip)
-- 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
local ped = CreatePed(4, model, coords.x, coords.y, coords.z - 1.0, 0.0, true, false) SetPedRandomComponentVariation(ped, true) SetPedRandomProps(ped) SetEntityAsMissionEntity(ped, true, true) SetBlockingOfNonTemporaryEvents(ped, true) -- Admin command permissions (steam identifier or 'admin')
-- Random chat messages (can be localized) Config.ChatMessages = "Hello everyone!", "Anyone want to do a heist?", "New player here, any tips?", "GG", "Where is the best car shop?", "I'm new to this server", "Looking for a crew", "Nice weather today"
-- Movement AI TaskWanderInArea(ped, coords.x, coords.y, coords.z, 50.0, 0.0, 0.0)
table.insert(BotList, id = src, name = name, skin = skin, coords = coords ) y = -1287.4
-- Remove all fake players RegisterNetEvent('fpb:removeAllFakePlayers') AddEventHandler('fpb:removeAllFakePlayers', function() for id, ped in pairs(FakePeds) do if DoesEntityExist(ped) then DeleteEntity(ped) end end FakePeds = {} end)
server_scripts 'config.lua', 'server.lua'
-- 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
-- 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)]