example
example

资源 [免费] MSK 人工智能出租车

Yann

站长
管理成员
GTAOS管理组
认证卖家
认证用户
本 月 名 人 榜 最 佳
原贴:https://forum.cfx.re/t/free-msk-ai-taxi/5257890

MSK 人工智能出租车​

简易人工智能出租车

Github 下载

描述​

  • 你可以用命令叫出租车
  • 您可以使用命令和热键中止滑行
  • 你可以为出租车设置多个 Spawnpoint
  • 您可以更改驾驶风格和速度区
  • 您可以设置不同的步行模型,并赋予它们名字和声音
  • 您可以设定价格
  • 出租车将在指定限速区改变速度

配置​

打开配置

lua:
Config = {}
----------------------------------------------------------------
Config.Locale = 'de'
Config.VersionChecker = true
----------------------------------------------------------------
-- !!! This function is clientside AND serverside !!!
Config.Notification = function(source, message, typ)
    if IsDuplicityVersion() then -- serverside
        exports.msk_core:Notification(source, 'AI Taxi', message, typ)
    else -- clientside
        exports.msk_core:Notification('AI Taxi', message, typ)
    end
end
----------------------------------------------------------------
-- You'll need esx_addonaccount for that!
Config.Society = {
    enable = false, -- Set false if you don't want that the Price will be added to a society account
    account = 'society_taxi'
}
----------------------------------------------------------------
-- If you deactivate the command, you can still use the export: exports.msk_aitaxi:callTaxi()
Config.Command = {
    enable = true,
    command = 'callTaxi'
}

Config.AbortTaxiDrive = {
    enable = true,
    command = 'abortTaxi',
    hotkey = 'X'
}

-- You can set multiple spawn points
Config.SpawnCoords = {
    vector4(902.85, -143.56, 76.6, 322.2),
}

Config.DrivingStyle = 786731 -- default: 786731 // https://vespura.com/fivem/drivingstyle/
Config.SpeedType = 3.6 -- kmh = 3.6 // mph = 2.236936
Config.SpeedZones = {
    -- Speed of the Taxi in specific zones
    [2] = 100, -- City / main roads
    [10] = 60, -- Slow roads
    [64] = 60, -- Off road
    [66] = 150, -- Freeway
    [82] = 150, -- Freeway tunnels
}

Config.Price = {
    base = 20, -- Price for driving to your position
    tick = 0.15, -- Price per tick
    tickTime = 50,

    color = {r = 255, g = 255, b = 255, a = 255},
    position = {height = 0.90, width = 0.50}
}
----------------------------------------------------------------
-- It will use a random vehicle and random pedmodel from the list below
Config.Taxi = {
    vehicles = {
        -- You can set different models
        'taxi',
        'taxi',
    },
    pedmodels = {
        -- You can set different models
        {name = 'Michael Reynold', model = 'a_m_y_stlat_01', voice = 'A_M_M_EASTSA_02_LATINO_FULL_01'},
        {name = 'John Smith', model = 'a_m_y_smartcaspat_01', voice = 'A_M_M_EASTSA_02_LATINO_FULL_01'},
    },
}

雷斯蒙​

  • 未使用:0.00 毫秒
  • 使用中:~0.06ms

要求​

可选要求​

 

xingkongex

新用户
认证用户
原帖插件可以无限呼叫出租车,导致地图全是taxi的车辆,我改成了每五分钟叫一次,冷却时间可以在client里第70行
local coolDownTime = 5 * 60000 中修改,微信图片_20240901152214.png
 

附件

顶部