[免费] Duckmobiles

quackmobil_showcase

:duck: 为什么开车的时候不开车鹅呢?

你的城市有超级跑车、坦克和飞行摩托车。但它一直缺少的是 一个4米长的绿头鸭,你可以坐在里面。

Quackmobil 为 FiveM 添加了三种可驾驶的鹅。它们摇摆、嘎嘎叫、游泳和飞行。它们还是 免费的,所以没有账单要付。(鹅们自己付。)

在 Tebex 上免费获取 · 文档 · Discord


:baby_chick: 认识一下这群鹅

生成名称 那是谁家的鹅?
quackmobil The Drake. 绿色的头,白色的领子,灰色的西装。为在池塘里开会而打扮。
quackmobil_hen The Hen. 斑驳的棕色,深色的眼纹。实际在管理池塘的那只。
quackmobil_rubber The Rubber Duck. 浴缸传奇。大眼睛,零思考,最大活力。

三种独立的附加车辆共享一种操控方式。它们在任何生成器、商店或车库中愉快地筑巢。


:sparkles: 功能(没有禽类恶作剧)

:foot: 它活了!

  • 鹅蹼在越快行驶时划水越快,在空中疯狂拍打,在红灯时不耐烦地敲击
  • 头随着每一次划水上下点头,在转弯时看向弯道,在等待时好奇地四处张望
  • 嘴巴随着每一次嘎嘎叫而张开,头骄傲地抬起
  • 总的来说,包括头部都垂下来了。非常戏剧化。真正的鹅会赞同的。

:megaphone: 嘎嘎,喇叭

  • 你的喇叭现在是一个 真实的绿头鸭录音,附近的每个人都能听到(当然,靠近时更响亮)
  • 每只鹅的嘎嘎声音调略有不同,并跳起小小的喜悦之舞

:wing: 飞起来,飞起来,飞向空中(默认按键 X)

  • 翅膀从两侧平滑展开,飞行速度越快,扇动越快
  • 下降时滑翔,把脚收回去,像专业人士一样伸展脖子
  • 街机飞行:W/S 速度,A/D 银行和转向,空格 上升,Ctrl 下降
  • 同步给每个玩家,所以每个人都可以看着你飞过他们的窗户
  • 可选的飞行执照:限制飞行仅在工作时间(ESX、QBCore 或 Qbox)和/或 ACE 权限(在服务器上检查,没有躲避鹅)
  • 可选的 Discord 日志用于你的员工:谁起飞了,谁没有执照就尝试起飞

:ocean: 加入水

  • 鹅是两栖动物:直接从码头驶入湖泊、河流或大海
  • 它们漂浮,在波浪上上下浮动,像船一样转向。终于有一辆车属于水里了。
  • 从水上或陆地上起飞。非常雄伟。大部分时间是这样。

:eyes: 我看到你

  • 头灯从鹅的眼睛里发光,并随着头部转动。看向弯道,灯光照向弯道。
  • 低光和高光,加上眼睛里柔和的光芒,在夜间给人一种“我知道你做了什么”的感觉

:feather: 禽类恶作剧检测

  • 猛烈碰撞后,一阵羽毛飘落到地面。你的保险不会赔付,但它看起来太棒了。

:bathtub: 精美的模型

  • 没有可见的车轮:鹅坐得很低,即使在柏油路上也像是在漂浮
  • 带有桶式座椅的缓冲驾驶舱,仪表盘仪表和带有鹅标志的方向盘
  • 完整的 LOD 链接加上一个 _hi 模型,所以一群鹅不会吃掉你的帧
  • 来自 LS Customs 或车库里定制的轮毂会自动移除。鹅不需要轮毂。

:high_voltage: 轻如羽毛

  • 停放的鹅不收费。 它们会打盹,直到有人上车、嘎嘎叫或撞到它们
  • 屏幕外的鹅会被跳过,远处的鹅更新频率较低,与玩家的 FPS 无关
  • 头、喙和脚只有在实际移动时才会重新连接
  • 喇叭是一个按键绑定,所以在驾驶时不会每帧都检测输入
  • 3 个图形预设(性能 / 平衡 / 质量),玩家可以用 /quackquality 选择自己的
  • 简单模式: 一个开关将鹅变成普通的车辆,客户端负载几乎为零。对于喜欢鹅保持安静的伺服器。

:gear: 把你的鹅排好队

一切都存在于开放的 config.lua 中:用于翻译的文本、按键、喇叭、飞行物理和权限、水上驾驶、头部、翅膀、眼睛灯光、羽毛和图形预设。Discord webhooks 位于 config_server.lua 中,永远不会到达玩家。包含的 README 和 文档 解释了每个选项,所以没有人需要拍脑袋决定。

config.lua preview (it’s quackers how much you can change)
Config.SimpleMode = false            -- true = ducks behave like normal vehicles (practically no client load)

Config.Locale = {                    -- every text players see
    VehicleNames = {
        quackmobil = 'Quackmobil',
        quackmobil_hen = 'Quackmobil Hen',
        quackmobil_rubber = 'Quackmobil Rubber Duck',
    },
    MakeName = 'Squeak & Co.',
    FlightDenied = 'You are not allowed to fly the Quackmobil.',
    -- ...
}

Config.Horn = {
    KeyMapping = true,               -- false = classic horn polling (controller players)
    DefaultKey = 'E',
    Volume = 0.8,
    HearDistance = 45.0,
    PitchVariation = 0.05,
    Cooldown = 350,
    HopForce = 3.0,
}

Config.Flight = {
    Enabled = true,
    DefaultKey = 'X',
    AllowedJobs = {},                -- e.g. { 'police', 'ambulance' } (ESX, QBCore or Qbox)
    AcePermission = false,           -- e.g. 'quackmobil.fly'
    MaxSpeed = 38.0,                 -- m/s (~137 km/h)
    Acceleration = 8.0,
    TurnRate = 75.0,
    ClimbRate = 7.0,
    DiveRate = 10.0,
    -- ...
}

Config.Swim = {
    Enabled = true,
    MaxSpeed = 9.0,                  -- m/s on water (~32 km/h)
    TurnRate = 50.0,
    Grip = 1.5,
    -- ...
}

Config.Head = { SteerFactor = 0.9, BeakOpen = 22.0 }
Config.Wings = { UnfoldTime = 0.8, FoldTime = 0.7 }

Config.EyeLights = {
    Color = { 255, 240, 214 },
    LowBeam = { Distance = 40.0, Brightness = 4.0, Radius = 24.0, Falloff = 6.0 },
    HighBeam = { Distance = 70.0, Brightness = 6.0, Radius = 18.0, Falloff = 6.0 },
    Glow = { Range = 0.45, Intensity = 3.0 },
}

Config.FeatherEffect = { Lifetime = { 2.2, 3.4 }, MaxActive = 40 }

Config.Preset = 'balanced'           -- 'performance', 'balanced' or 'quality'
Config.AllowPlayerChoice = true      -- players pick their own preset with /quackquality
Config.Override = {}                 -- e.g. { Feathers = 0 }

Config.Presets = {
    balanced = {
        PropDistance = 300.0,        -- head, wings and feet up to this distance
        DetailDistance = 120.0,      -- head and feet animated up to this distance
        UpdateRates = { { 35.0, 0 }, { 80.0, 30 }, { 150.0, 15 }, { math.huge, 8 } },
        IdleLookAround = true,
        FootTapping = true,
        LightDistance = 120.0,
        EyeLightSpots = 1,
        EyeGlow = true,
        Feathers = 10,
        -- ...
    },
    -- performance = { ... }, quality = { ... }
}

:video_game: 如何摇摆

操作 默认按键
嘎嘎 E
飞走(飞行模式) X
速度 / 转向(空中和水上) W S / A D
上升 / 下降(空中) 空格 / Ctrl
图形预设 /quackquality

所有按键都是 FiveM 按键绑定,所以每个玩家都可以在 设置 → 按键绑定 → FiveM 中重新绑定它们。


:egg: 从结账到嘎嘎叫

  1. 在 Tebex 上获取(免费)。它将自动添加到你的 Cfx.re 账户。
  2. 从 Cfx.re Portal 下的 已授权资产 下载
  3. 将 quackmobil 文件夹放入你的 resources
  4. 在你的 server.cfg 中添加 ensure quackmobil
  5. 用 /car quackmobil 孵化一只,或将其三种模型添加到你的车辆商店

就是这样。没有鹅蛋受到伤害。

有件事要知道:你的服务器必须使用与拥有该资源的同一 Cfx.re 账户的许可证密钥运行。这就是 FiveM 资产托管的工作原理。


:puzzle_piece: 开发者

导出,在开放文件中你可以更改:

  • 客户端: isDuck(vehicle),isFlying(),stopFlying(),getQuality(),setQuality(name, save)
  • 服务器: canFly(source),isDuck(entity),getFlier(netId)

所有这些都解释在 文档 中。


:inbox_tray: 拿你的鹅

免费获取: Tebex
文档: organized-chaos.gitbook.io
支持 / Discord: discord.gg/aGks2EPx3

代码可访问 没有(托管);config.lua,config_server.lua,元数据和导出文件是开放的
基于订阅 否
代码行数(约) ~1,800 (Lua) + 3 车辆模型
依赖项 OneSync。ESX、QBCore 或 Qbox 可选(仅用于基于工作的飞行权限)
支持 是,在 Discord 上

发现了错误?报告它。发现了功能?也报告一下。在你的服务器里发现了一只真正的鹅?那得靠你自己了。

注意:嘎嘎声可能太嘎嘎了。

查看英文原文 (Original)

quackmobil_showcase

:duck: Why drive a car when you can drive a duck?

Your city has supercars, tanks and flying bikes. What it’s been missing is a 4-metre mallard you can sit in.

Quackmobil adds three drivable ducks to FiveM. They waddle, they quack, they swim and they fly. They’re also free, so there’s no bill to pay. (The ducks bring their own.)

Get it free on Tebex · Documentation · Discord


:baby_chick: Meet the flock

Spawn name Who’s that duck?
quackmobil The Drake. Green head, white collar, grey suit. Dressed for a business meeting at the pond.
quackmobil_hen The Hen. Mottled brown, dark eye stripe. The one actually running the pond.
quackmobil_rubber The Rubber Duck. Bathtub legend. Big eyes, zero thoughts, maximum vibes.

Three separate add-on vehicles that share one handling. They nest happily in any spawner, shop or garage.


:sparkles: Features (no fowl play)

:foot: It’s alive!

  • The webbed feet paddle faster the faster you drive, kick wildly in the air and tap impatiently at red lights
  • The head bobs with every stroke, looks into curves and looks around curiously while you wait
  • The bill opens with every quack, and the head lifts proudly
  • Total it and the head droops. Very dramatic. Real ducks would approve.

:megaphone: Quack, the horn

  • Your horn is now a real recorded mallard, heard by everyone nearby (louder up close, of course)
  • Every duck quacks at a slightly different pitch, and does a little hop of joy

:wing: Up, up and a-wing (default key X)

  • The wings unfold smoothly from the flanks and flap faster the faster you fly
  • Glides on the way down, tucks its feet back and stretches its neck like a pro
  • Arcade flight: W/S speed, A/D bank and turn, Space climb, Ctrl descend
  • Synced for every player, so everyone can watch you flap past their window
  • Optional flight licence: limit flying to jobs (ESX, QBCore or Qbox) and/or an ACE permission (checked on the server, no duck-dodging)
  • Optional Discord log for your staff: who took off, and who tried to without a licence

:ocean: Just add water

  • The ducks are amphibious: drive straight off the pier into lakes, rivers or the sea
  • They float, bob on the waves and steer like a boat. Finally, a car that belongs in the water.
  • Take off from the water or land on it. Very majestic. Mostly.

:eyes: Eye see you

  • The headlights shine from the duck’s eyes and turn with the head. Look into the curve, light into the curve.
  • Low and high beam, plus a soft glow in the eyes for that “I know what you did” look at night

:feather: Fowl play detection

  • Crash hard and a burst of feathers flutters to the ground. Your insurance won’t cover it, but it looks amazing.

:bathtub: Clean model

  • No visible wheels: the duck sits low, like it’s floating even on asphalt
  • Padded cockpit with bucket seats, dashboard gauges and a steering wheel with a duck emblem
  • Full LOD chain plus a _hi model, so a whole flock doesn’t eat your frames
  • Custom rims from LS Customs or garages get removed automatically. Ducks don’t do rims.

:high_voltage: Light as a feather

  • Parked ducks cost nothing. They nap until someone gets in, quacks or bumps into them
  • Ducks off-screen are skipped, and far-away ducks update less often, independent of the player’s FPS
  • Head, bill and feet are only re-attached when they actually moved
  • The horn is a key binding, so nothing polls input every frame while driving
  • 3 graphics presets (performance / balanced / quality), and players can pick their own with /quackquality
  • Simple mode: one switch turns the ducks into plain vehicles with practically no client load. For servers that like their ducks calm.

:gear: Get your ducks in a row

Everything lives in the open config.lua: texts for translation, keys, horn, flight physics and permissions, water driving, head, wings, eye lights, feathers and graphics presets. The Discord webhook sits in config_server.lua, which never reaches the players. The included README and the documentation explain every single option, so nobody has to wing it.

config.lua preview (it’s quackers how much you can change)
Config.SimpleMode = false            -- true = ducks behave like normal vehicles (practically no client load)

Config.Locale = {                    -- every text players see
    VehicleNames = {
        quackmobil = 'Quackmobil',
        quackmobil_hen = 'Quackmobil Hen',
        quackmobil_rubber = 'Quackmobil Rubber Duck',
    },
    MakeName = 'Squeak & Co.',
    FlightDenied = 'You are not allowed to fly the Quackmobil.',
    -- ...
}

Config.Horn = {
    KeyMapping = true,               -- false = classic horn polling (controller players)
    DefaultKey = 'E',
    Volume = 0.8,
    HearDistance = 45.0,
    PitchVariation = 0.05,
    Cooldown = 350,
    HopForce = 3.0,
}

Config.Flight = {
    Enabled = true,
    DefaultKey = 'X',
    AllowedJobs = {},                -- e.g. { 'police', 'ambulance' } (ESX, QBCore or Qbox)
    AcePermission = false,           -- e.g. 'quackmobil.fly'
    MaxSpeed = 38.0,                 -- m/s (~137 km/h)
    Acceleration = 8.0,
    TurnRate = 75.0,
    ClimbRate = 7.0,
    DiveRate = 10.0,
    -- ...
}

Config.Swim = {
    Enabled = true,
    MaxSpeed = 9.0,                  -- m/s on water (~32 km/h)
    TurnRate = 50.0,
    Grip = 1.5,
    -- ...
}

Config.Head = { SteerFactor = 0.9, BeakOpen = 22.0 }
Config.Wings = { UnfoldTime = 0.8, FoldTime = 0.7 }

Config.EyeLights = {
    Color = { 255, 240, 214 },
    LowBeam = { Distance = 40.0, Brightness = 4.0, Radius = 24.0, Falloff = 6.0 },
    HighBeam = { Distance = 70.0, Brightness = 6.0, Radius = 18.0, Falloff = 6.0 },
    Glow = { Range = 0.45, Intensity = 3.0 },
}

Config.FeatherEffect = { Lifetime = { 2.2, 3.4 }, MaxActive = 40 }

Config.Preset = 'balanced'           -- 'performance', 'balanced' or 'quality'
Config.AllowPlayerChoice = true      -- players pick their own preset with /quackquality
Config.Override = {}                 -- e.g. { Feathers = 0 }

Config.Presets = {
    balanced = {
        PropDistance = 300.0,        -- head, wings and feet up to this distance
        DetailDistance = 120.0,      -- head and feet animated up to this distance
        UpdateRates = { { 35.0, 0 }, { 80.0, 30 }, { 150.0, 15 }, { math.huge, 8 } },
        IdleLookAround = true,
        FootTapping = true,
        LightDistance = 120.0,
        EyeLightSpots = 1,
        EyeGlow = true,
        Feathers = 10,
        -- ...
    },
    -- performance = { ... }, quality = { ... }
}

:video_game: How to waddle

Action Default key
Quack E
Flap away (flight mode) X
Speed / turn (air and water) W S / A D
Climb / descend (air) Space / Ctrl
Graphics preset /quackquality

All keys are FiveM key bindings, so every player can rebind them in Settings → Key Bindings → FiveM.


:egg: From checkout to quack

  1. Grab it on Tebex (free). It is added to your Cfx.re account automatically.
  2. Download it from the Cfx.re Portal under Granted Assets
  3. Drop the quackmobil folder into your resources
  4. Add ensure quackmobil to your server.cfg
  5. Hatch one with /car quackmobil, or add the three models to your vehicle shop

That’s it. No eggs were harmed.

One thing to know: your server has to run with a license key from the same Cfx.re account that owns the resource. That’s how FiveM’s asset escrow works.


:puzzle_piece: For developers

Exports, in open files you may change:

  • Client: isDuck(vehicle), isFlying(), stopFlying(), getQuality(), setQuality(name, save)
  • Server: canFly(source), isDuck(entity), getFlier(netId)

All of them are explained in the documentation.


:inbox_tray: Grab your duck

Get it free: Tebex
Documentation: organized-chaos.gitbook.io
Support / Discord: discord.gg/aGks2EPx3

Code is accessible No (escrow); config.lua, config_server.lua, the metas and the export files are open
Subscription-based No
Lines (approximately) ~1,800 (Lua) + 3 vehicle models
Requirements OneSync. ESX, QBCore or Qbox optional (only for job-based flight permissions)
Support Yes, on Discord

Found a bug? Report it. Found a feature? Report that too. Found a real duck in your server? That one’s on you.

Attention: Quack sound might be too quacky.

本文资源搬运自 CFX.re FiveM 官方论坛,原作者:organized-chaos。原帖地址:https://forum.cfx.re/t/free-duckmobiles/5434110

原帖标签:standalone, free, vehicle

THE END
喜欢就支持一下吧
点赞14 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容