дзеркало
https://github.com/rilaxik/fivem-rpc.git
синхронізовано 2026-11-08 07:22:09 +02:00
14c95dd3b43dc7628b2c46a777360ffc885f4b75
FiveM RPC
is an all-in-one package with asynchronous RPC implementation for FiveM servers in JS/TS
Installation
pnpm i @entityseven/fivem-rpc
yarn add @entityseven/fivem-rpc
bun add @entityseven/fivem-rpc
It is highly recommended to also install additional package for enhanced typing
pnpm i @entityseven/fivem-rpc-shared-types -D
yarn add @entityseven/fivem-rpc-shared-types --dev
bun add @entityseven/fivem-rpc-shared-types -d
Docs
Can be found in /rpc/readme.md
Features
- Type-Safe Development: Eliminate runtime errors and enhance code reliability with comprehensive type safety
- All-in-one package: Communicate effortlessly between server, client and webview
Contributing
Issues and pull requests are very welcome
License
Licensed under Custom Attribution-NoDerivs Software License
WIP
- client observers to catch events between server and webview (subscribe-like behaviour)
- client observers to prevent events (middleware-like behaviour)
- player manager (transform player id to desired data straight from a listener)
Опис
Call FiveM server, client and NUI listeners like async functions: typed, with timeouts, no event ping-pong
Файл readme
170 KiB
0 Зірки
2 Спостерігачі
0 Форки
Мови
TypeScript
100%