[免费] PawnShop Script

:convenience_store: LRRP 自由当铺

为 FiveM QBCore 自由玩家拥有当铺系统

LRRP_FreePawnShop 是专为 FiveM QBCore 构建的玩家拥有当铺系统。

它不仅作为简单的 NPC 销售点运行,还允许玩家购买和经营自己的当铺,配置感兴趣的购买物品,与顾客协商当铺协议,发行独特的当票,管理活跃合同,并在协议到期前赎回物品前拥有未赎回的物品。

:inbox_tray: 下载

下载 – https://lrrp-studio.tebex.store/
支持 – LRRP Studio


:convenience_store: 玩家拥有当铺

玩家可以购买和经营自己的当铺。

功能包括:

  • 持久化的当铺所有权

  • 默认购买价格 $25,000

  • 可配置的购买价格

  • 可放置的当铺经纪人 NPC

  • 经纪人重新定位

  • 自定义当铺名称

  • 商业管理

  • 能够离职经营

  • 持久化的商业数据


:handshake: 当铺协商

顾客可以将支持的库存物品带到玩家拥有的当铺并协商当铺协议。

当铺所有者可以配置:

  • 接受的物品

  • 最大贷款价值

  • 最大数量

  • 利率

  • 协议期限

最大报价对顾客保密。

最终当铺交易和物品验证由服务器端处理。


:admission_tickets: 独特的当票

成功的当铺协议会生成包含合同信息的个人当票。

票据支持:

  • 唯一的合同识别

  • 赎回日期

  • 到期日期

  • 顾客拥有

  • 票据转让

  • 合同验证

  • 赎回验证

  • 自动没收

票据与相应的当铺协议相关联,而不是作为简单的通用库存物品。


:stopwatch: 到期协议

当铺协议具有可配置的期限。

如果顾客在赎回物品前协议到期,合同将被标记为过期,当铺物品将成为当铺财产。

所有者然后可以通过当铺商业界面管理没收的物品。


:money_bag: 商业管理

当铺所有者可以访问一个专门的管理界面,其中包含:

  • 商业资金

  • 存款

  • 取款

  • 活跃协议

  • 过期协议

  • 交易历史

  • 没收库存

  • 当铺设置

  • 接受物品配置


:date: 经营成本

当铺也可以具有可配置的运营费用。

支持的商业成本包括:

  • 商业税

  • 当铺经纪人工资

这些值可以由服务器所有者调整。


:artist_palette: 自定义当铺 UI

该资源包括一个专为当铺系统设计的自定义 FiveM 界面。

UI 包括:

  • 当铺管理

  • 当铺协商

  • 合同信息

  • 当票

  • 商业账簿

  • 协议管理

  • 没收库存管理

  • LRRP FiveM 品牌标识


:free_button: 免费版

这是该资源的免费功能版本。

每个当铺最多可以配置:

5 请求物品

免费版限制由服务器验证,不依赖于客户端 UI 限制。

免费版还使用固定的 LRRP 品牌标识。

高级版移除了请求物品限制并提供自定义品牌支持,但 高级版不是使用此免费资源所必需的。


:bullseye: 交互支持

支持的交互方法:

  • qb-target

  • 标准 E键交互回退

qb-target 是可选的。

不使用 qb-target 的服务器可以使用内置交互方法。


:water_pistol: QBCore 库存与武器支持

该资源与 QBCore 库存物品兼容。

武器也可以在当铺协议中作为 QBCore 库存物品使用,同时保留其现有的元数据(如果服务器库存实现支持)。


:locked_with_key: 服务器端验证

敏感的当铺操作由服务器端验证。

验证包括:

  • 商业所有权

  • 玩家资金

  • 商业资金

  • 当铺报价

  • 物品数量

  • 合同有效性

  • 利率计算

  • 合同到期

  • 赎回

  • 没收库存

  • 免费版物品限制

客户请求不被信任用于权威的商业交易。


:gear: 配置

服务器所有者可以配置设置,包括:

  • 当铺购买价格

  • 当铺经纪人 NPC

  • 交互距离

  • 当铺期限

  • 利率值

  • 商业运营成本

  • Blips

  • 通知

  • Webhooks

  • 游戏设置

默认当铺购买价格:

$25,000

正常服务器设置所需的配置文件仍然可以访问。


:package: 要求与依赖项

必需

  • FiveM

  • qb-core

  • oxmysql

可选

  • qb-target

框架:

QBCore


:counterclockwise_arrows_button: 免费版 → 高级版兼容性

免费版和高级版使用相同的数据库结构。

服务器可以开始使用免费版,然后稍后迁移到高级版,而无需有意重建现有的当铺或当铺合同。

在替换或更新任何实时资源之前建议进行数据库备份。


:file_folder: 资源名称

免费资源必须保留名称:

LRRP_FreePawnShop


:bar_chart: 性能

该资源使用基于邻近的交互和服务器权威事件,而不是持续处理当铺交易。

Resource Monitor 结果:

  • 闲置 / 未交互: [插入测量值]

  • 当铺交互 / UI 活跃: [插入测量值]


:clipboard: 资源信息

代码可访问 部分情况 — 配置文件可访问;受保护的核心理能使用 Cfx Asset Escrow
基于订阅 否
代码行数(约) [插入近似行数]
要求与依赖项 FiveM, QBCore (qb-core), oxmysql; qb-target 可选
支持 是

由 Bo Jangles 开发

LRRP 脚本

支持 – LRRP Studio

查看英文原文 (Original)

:convenience_store: LRRP Free PawnShop

Free Player-Owned Pawn Shop System for FiveM QBCore

LRRP_FreePawnShop is a player-owned pawn shop system built for FiveM QBCore.

Rather than functioning as a simple NPC sell point, the resource allows players to purchase and operate their own pawn shop, configure the items they are interested in buying, negotiate pawn agreements with customers, issue unique pawn tickets, manage active contracts and take ownership of items that are not redeemed before their agreement expires.

:inbox_tray: Download

Download – https://lrrp-studio.tebex.store/
Support – LRRP Studio


:convenience_store: Player-Owned Pawn Shops

Players can purchase and operate their own pawn shop.

Features include:

  • Persistent pawn shop ownership

  • Default purchase price of $25,000

  • Configurable purchase price

  • Placeable pawn broker NPC

  • Broker repositioning

  • Custom pawn shop names

  • Business management

  • Ability to vacate the business

  • Persistent business data


:handshake: Pawn Negotiation

Customers can bring supported inventory items to a player-owned pawn shop and negotiate a pawn agreement.

Pawn shop owners can configure:

  • Accepted items

  • Maximum loan values

  • Maximum quantities

  • Interest rates

  • Agreement durations

Maximum offer values are kept hidden from customers.

The final pawn transaction and item validation are handled server-side.


:admission_tickets: Unique Pawn Tickets

Successful pawn agreements generate individual pawn tickets containing contract information.

Tickets support:

  • Unique contract identification

  • Redemption dates

  • Expiry dates

  • Customer ownership

  • Ticket transfers

  • Contract verification

  • Redemption validation

  • Automatic forfeiture

Tickets are connected to the corresponding pawn agreement rather than acting as simple generic inventory items.


:stopwatch: Expired Agreements

Pawn agreements have configurable durations.

If an agreement expires before the customer redeems their item, the contract is marked as expired and the pawned item becomes property of the pawn shop.

The owner can then manage the forfeited item through the pawn shop business interface.


:money_bag: Business Management

Pawn shop owners have access to a dedicated management interface containing:

  • Business funds

  • Deposits

  • Withdrawals

  • Active agreements

  • Expired agreements

  • Transaction history

  • Forfeited inventory

  • Pawn settings

  • Accepted item configuration


:date: Operating Costs

Pawn shops can also have configurable operating expenses.

Supported business costs include:

  • Business tax

  • Pawn broker wages

These values can be adjusted by the server owner.


:artist_palette: Custom Pawn Shop UI

The resource includes a custom FiveM interface designed specifically for the pawn shop system.

The UI includes:

  • Pawn shop management

  • Pawn negotiations

  • Contract information

  • Pawn tickets

  • Business ledger

  • Agreement management

  • Forfeited stock management

  • LRRP FiveM branding


:free_button: Free Edition

This is a functional free edition of the resource.

Each pawn shop can configure a maximum of:

5 Wanted Items

The Free-edition limit is validated by the server and is not dependent on a client-side UI restriction.

The Free edition also uses fixed LRRP branding.

The Premium edition removes the wanted-item limit and provides custom branding support, but Premium is not required to use this Free resource.


:bullseye: Interaction Support

Supported interaction methods:

  • qb-target

  • Standard E-key interaction fallback

qb-target is optional.

Servers that do not use qb-target can use the built-in interaction method instead.


:water_pistol: QBCore Inventory & Weapon Support

The resource works with QBCore inventory items.

Weapons can also be used within pawn agreements as QBCore inventory items while retaining their existing metadata where supported by the server’s inventory implementation.


:locked_with_key: Server-Side Validation

Sensitive pawn shop actions are validated server-side.

Validation includes:

  • Business ownership

  • Player funds

  • Business funds

  • Pawn offers

  • Item quantities

  • Contract validity

  • Interest calculations

  • Contract expiry

  • Redemption

  • Forfeited inventory

  • Free-edition item limits

Client requests are not trusted for authoritative business transactions.


:gear: Configuration

Server owners can configure settings including:

  • Pawn shop purchase price

  • Pawn broker NPC

  • Interaction distances

  • Pawn durations

  • Interest values

  • Business operating costs

  • Blips

  • Notifications

  • Webhooks

  • Gameplay settings

Default pawn shop purchase price:

$25,000

Configuration files required for normal server setup remain accessible.


:package: Requirements & Dependencies

Required

  • FiveM

  • qb-core

  • oxmysql

Optional

  • qb-target

Framework:

QBCore


:counterclockwise_arrows_button: Free → Premium Compatibility

The Free and Premium editions use the same database structure.

Servers can begin with the Free edition and later move to Premium without intentionally rebuilding existing pawn shops or pawn contracts.

A database backup is recommended before replacing or updating any live resource.


:file_folder: Resource Name

The Free resource must remain named:

LRRP_FreePawnShop


:bar_chart: Performance

The resource uses proximity-based interactions and server-authoritative events rather than continuously processing pawn transactions.

Resource Monitor results:

  • Idle / not interacting: [INSERT MEASURED RESMON]

  • Pawn shop interaction / UI active: [INSERT MEASURED RESMON]


:clipboard: Resource Information

Code is accessible Partially — configuration files are accessible; protected core functionality uses Cfx Asset Escrow
Subscription-based No
Lines (approximately) [INSERT APPROXIMATE LINE COUNT]
Requirements & dependencies FiveM, QBCore (qb-core), oxmysql; qb-target optional
Support Yes

Developed by Bo Jangles

LRRP Scripts

Support – LRRP Studio

本文资源搬运自 CFX.re FiveM 官方论坛,原作者:LRRP-Scripts。原帖地址:https://forum.cfx.re/t/free-pawnshop-script/5425827

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

请登录后发表评论

    暂无评论内容