Sleepless Routing

sleepless_routing

FiveM命名路由桶。给实例命名,将玩家移入其中,并从复制玩家状态中读取结果。

功能特性

  • 命名桶。桶0是世界,桶1是隐藏的,命名桶从2开始。
  • 复制玩家状态:currentBucket, oldBucket, currentBucketName
  • 桶的种群和实体锁定(inactive, relaxed, strict, no_dummy, full)
  • 玩家移动会带来自身车辆、车辆中的其他玩家以及附加到他们角色上的物体
  • getPlayersInBucket 用于当前在实例中的玩家
  • triggerClientEventForBucket 通过 lib.triggerClientEvent 向那些玩家发送一个客户端事件
  • moveEntityToBucket 用于服务器端车辆、角色和道具
  • 当另一个资源使用 SetPlayerRoutingBucket 移动玩家时,状态保持同步
  • 框架无关。不需要任何框架资源

依赖项

链接

Other Releases

代码可访问 是
基于订阅 否
代码行数(约) 460
依赖项 ox_lib
支持 是
查看英文原文 (Original)

sleepless_routing

Named routing buckets for FiveM. Give an instance a name, move a player into it, and read the result from replicated player state.

Features

  • Named buckets. Bucket 0 is the world, bucket 1 is hidden, and named buckets start at 2
  • Replicated player state: currentBucket, oldBucket, currentBucketName
  • Population and entity lockdown per bucket (inactive, relaxed, strict, no_dummy, full)
  • A player move brings their vehicle, the other players in it, and objects attached to their ped
  • getPlayersInBucket for whoever is in an instance right now
  • triggerClientEventForBucket sends one client event to those players through lib.triggerClientEvent
  • moveEntityToBucket for server-side vehicles, peds, and props
  • State stays in sync when another resource moves the player with SetPlayerRoutingBucket
  • Framework agnostic. No framework resource is required

Dependencies

Links

Other Releases

Code is accessible Yes
Subscription-based No
Lines (approximately) 460
Requirements ox_lib
Support Yes

本文资源搬运自 CFX.re FiveM 官方论坛,原作者:DemiAutomatic。原帖地址:https://forum.cfx.re/t/sleepless-routing/5432471

原帖标签:script, standalone, free

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

请登录后发表评论

    暂无评论内容