JRS COREالوثائق
السكربتات

Dependencies

8 سكربت في مجلد [DEPENDENCIES]

Libraries and base resources the scripts rely on.

هذا المجلد فيه 8 سكربت. اختر سكربت من التبويبات تحت.

مجاني (موجود مع JRS Core)   PolyZone

حدّد مناطق بأشكال مختلفة وافحص إذا النقطة داخل المنطقة أو برّاها

الريسورس PolyZone
المجلد [DEPENDENCIES]
الإصدار 2.6.1-RedM
الواجهة لا
حجم الكود 2,017 سطر Lua

الأوامر

  • /pzadd
  • /pzcancel
  • /pzcomboinfo
  • /pzcreate
  • /pzfinish
  • /pzlast
  • /pzundo

الـ Exports

TriggerZoneEvent

ملاحظات من ملف README#
text
# PolyZone
PolyZone is a FiveM mod to define zones of different shapes and test whether a point is inside or outside of the zone
## Download
Click [here](https://github.com/mkafrin/PolyZone/releases) to go to the releases page and download the latest release
## Using PolyZone in a Script
In order to use PolyZone in your script, you must _at least_ include PolyZone's client.lua directly in your __resource.lua or fxmanifest.lua. You can do that by
'''lua
client_scripts {
    '@PolyZone/client.lua',
    'your_scripts_client.lua',
}
'''
This will allow you to create PolyZones in your script, but will not import other zones, such as CircleZone, BoxZone, etc. All the other zones are extra, and re
'''lua
client_scripts {
  '@PolyZone/client.lua',
  '@PolyZone/BoxZone.lua',
  '@PolyZone/EntityZone.lua',
  '@PolyZone/CircleZone.lua',
  '@PolyZone/ComboZone.lua',
  'your_scripts_client.lua'
}
'''
## Documentation
For additional information on how to use PolyZone, please take a look at the [wiki](https://github.com/mkafrin/PolyZone/wiki)
## Troubleshooting and Support
For help troubleshooting issues you've encountered (that aren't in the FAQ), or to suggest new features, use the [issues page](https://github.com/mkafrin/PolyZo
## FAQ - Frequently Asked Questions
**I'm getting the error `attempt to index a nil value` when creating a zone, what's wrong?**
> Did you include all the necessary scripts in your \_\_resource.lua or fxmanifest.lua? Remember some zones require other zones, like EntityZone.lua requires Bo
**I'm getting no errors, but I can't see my zone in the right place when I turn on debug drawing**
> If you are using them, is minZ and maxZ set correctly? Or if you are using a CircleZone with useZ=true, is your center's Z value correct? If using a PolyZone,
**Is PolyZone faster than a distance check?**
(line hidden)
## License
**Please see the LICENSE file. That file will always overrule anything mentioned in the README.md or wiki**

مجاني (موجود مع JRS Core)   httpmanager

مكتبة للتعامل مع HTTP

الريسورس httpmanager
المجلد [DEPENDENCIES]
المطوّر jrs team
الواجهة لا
حجم الكود 1,803 Lua lines

الـ Exports

createHttpHandler, getUrl

ملاحظات من ملف README#
text
# httpmanager
HTTP handler utility for FiveM and RedM. It can be used as a simple file server, or to provide easy HTTP functionality to any resource.
# Installation
1. Place in your resources directory.
2. Add `start httpmanager` to server.cfg.
# Usage
## As a standalone file server
After installing, you can place files in the `http` folder inside the `httpmanager` resource folder, and those files will be accessible at:
'''
http://[server IP]:[server port]/httpmanager/...
'''
or
'''
https://[owner]-[server ID].users.cfx.re/httpmanager/...
'''
For example, if you place a file named `test.html` in the `http` folder, it would be accessible at `http://[server IP]:[server port]/httpmanager/test.html`.
## In other resources
You can quickly add HTTP functionality to any resource using the `createHttpHandler` export:
'''lua
handler = exports.httpmanager:createHttpHandler(options)
'''
This creates a new HTTP handler that can be used with `SetHttpHandler` in a server script in the resource:
'''lua
SetHttpHandler(exports.httpmanager:createHttpHandler())
'''
`options` is a table containing configuration options for the new handler. Any unspecified options will be given their default value.
| Option              | Description                                                                                  | Default        |
(line hidden)
| `documentRoot`      | The directory in the resource folder where files are served from.                            | `"http"`       |
| `directoryIndex`    | If the path points to a directory, a file with this name inside that directory will be sent. | `"index.html"` |
| `templateExtension` | File extension for files that will be automatically preprocessed as templates.               | `"lsp"`        |
| `authorization`     | A table of usernames and passwords required to access any files or routes.                   | `nil`          |
| `access`            | A table of paths with which users can access them.                                           | `{}`           |
| `log`               | Whether to log requests to a file in the resource directory.                                 | `false`        |
| `logFile`           | If `log` is `true`, store the log in this file in the resource directory.                    | `"log.json"`   |
| `errorPages`        | A table of custom pages for different error codes (e.g., 404).                               | `{}`           |
| `mimeTypes`         | A table of MIME type associations for extensions, which will override any detected type.     | `{}`           |
| `routes`            | A table of route patterns and callbacks.                                                     | `{}`           |
'''lua
SetHttpHandler(exports.httpmanager:createHttpHandler {
	documentRoot = "root",
	directoryIndex = "index.html",
	templateExtension = "html",
	authorization = {
		["admin"] = "$2a$11$HoxJPx5sTe4RX5qPw1OkSO.ukDdwAvGJwXtmyOE5i.1gz7EvN71.q",

مدفوع (السيرفر فقط)   jrs_female_body

jrs_female_body - إصلاح جسم شخصية اللاعبة (مجسمات الجذع) + تكستشر محسّنة للجسم (الأقدام والأيدي)

الريسورس jrs_female_body
المجلد [DEPENDENCIES]
الإصدار 1.0.0
المطوّر jrs
الواجهة لا
حجم الكود 9 سطر Lua

مجاني (موجود مع JRS Core)   moonshine_interiors

غيّر interior_sets بالداخلية اللي تبيها في هذا المكان https://github.com/femga/rdr3_discoveries/blob/399df3278b5101af1044f205c045648d2c8bcb38/interiors/interior_sets/README.md

الريسورس moonshine_interiors
المجلد [DEPENDENCIES]
الواجهة لا
حجم الكود 249 سطر Lua
config.lua - 8 إعداد#

عام

الإعداد الافتراضي وظيفته
UseTeleports true يشغّل أو يطفّي teleports (الافتراضي true).
Blips true مفتاح لـ blips: true = شغّال، false = طافي (الافتراضي true).
Shacks table جدول عناصر shacks. أضف أو احذف أو عدّل العناصر على نفس أمثلة الملف.
  ↳ lemoyne table جدول عناصر lemoyne. أضف أو احذف أو عدّل العناصر على نفس أمثلة الملف.
  ↳ cattail_pond table جدول عناصر cattail pond. أضف أو احذف أو عدّل العناصر على نفس أمثلة الملف.
  ↳ new_austin table جدول عناصر new austin. أضف أو احذف أو عدّل العناصر على نفس أمثلة الملف.
  ↳ hanover table جدول عناصر hanover. أضف أو احذف أو عدّل العناصر على نفس أمثلة الملف.
  ↳ manzanita_post table جدول عناصر manzanita post. أضف أو احذف أو عدّل العناصر على نفس أمثلة الملف.
ملاحظات من ملف README#
text
# moonshine_interiors
moonshine interiors for redm

مجاني (موجود مع JRS Core)   objectloader

المسافة اللي تظهر وتختفي عندها الكيانات

الريسورس objectloader
المجلد [DEPENDENCIES]
الواجهة لا
حجم الكود 1,009 Lua lines

الأوامر

  • /objectloader_debug

الـ Exports

addMap, disableMap, enableMap, removeMap

config/config.lua - 3 إعداد#

عام

الإعداد الافتراضي وظيفته
SpawnDistance 50 المسافة اللي تظهر وتختفي عندها الكيانات
MapLoadTimeout 10000 Timeout before attempting to restart a crashed map thread
MaxEntities 500 Maximum number of entities that may be spawned at the same time

مجاني (موجود مع JRS Core)   oxmysql

اتصال FXServer مع MySQL عن طريق node-mysql2

الريسورس oxmysql
المجلد [DEPENDENCIES]
الإصدار 2.14.1
المطوّر Overextended
يعتمد على /server:12913
الواجهة نعم (NUI)
حجم الكود 215 سطر Lua
ملاحظات من ملف README#
text
# oxmysql
A FiveM resource to communicate with a MySQL database using [node-mysql2](https://github.com/sidorares/node-mysql2).
## 🔗 Links
- 💾 [Download](https://github.com/overextended/oxmysql/releases/latest/download/oxmysql.zip)
  - Download the latest release directly.
- 📚 [Documentation](https://overextended.dev/oxmysql)
  - For installation, setup, and everything else.
- 📦 [npm](https://www.npmjs.com/package/@overextended/oxmysql)
  - Use our npm package for enhanced functionality and TypeScript support.
## ✨ Features
- Support for mysql-async and ghmattimysql syntax.
- Promises / async query handling allowing for non-blocking and awaitable responses.
- Improved performance and stability compared to other options.
- Support for named and unnamed placeholders, improving performance and security.
- Support for URI connection strings and semicolon separated values.
- Improved parameter checking and error handling.
## 🧾 Logging
We have included a module for submitting error logs to [Fivemanage](https://fivemanage.com/?ref=overextended), a cloud management service tailored for game serv
## Lua Language Server
- Install [Lua Language Server](https://marketplace.visualstudio.com/items?itemName=sumneko.lua) to ease development with annotations, type checking, diagnostic
- See [ox_types](https://github.com/overextended/ox_types) for our Lua type definitions.

مجاني (موجود مع JRS Core)   pma-voice

نظام صوت (VOIP) مبني باستخدام FiveM\

الريسورس pma-voice
المجلد [DEPENDENCIES]
المطوّر AvarianKnight
يعتمد على /onesync
الواجهة نعم (NUI)
حجم الكود 1,457 Lua lines

الأوامر

  • /-radiotalk
  • /cycleproximity
  • /jrs_voicerange
  • /setvoiceintent
  • /vol

الـ Exports

GetPlayersInRadioChannel, SetCallChannel, SetMumbleProperty, SetRadioChannel, SetTokoProperty, addChannelCheck, addPlayerToCall, addPlayerToRadio, clearProximityOverride, getCallVolume, getPlayersInRadioChannel, getRadioAnimState, getRadioVolume, isValidPlayer, overrideProximityCheck, overrideProximityRange, overrideRadioNameGetter, removePlayerFromCall, removePlayerFromRadio, resetProximityCheck, setAllowProximityCycleState, setCallChannel, setCallVolume, setPlayerCall, setPlayerRadio, setRadioChannel, setRadioVolume, setVoiceProperty, setVoiceState, toggleMutePlayer

مجاني (موجود مع JRS Core)   uiprompt

الريسورس uiprompt
المجلد [DEPENDENCIES]
الواجهة لا
حجم الكود 1,415 Lua lines

الأوامر

  • /uiprompt_test
ملاحظات من ملف README#
text
# uiprompt
Object-oriented library for UI prompts in RedM.
## features
- Simplified prompt creation with the `Uiprompt` and `UipromptGroup` classes
- Callbacks for prompt events such as `onControlJustPressed` and `onHoldModeJustCompleted`
- Automatic cleanup of prompts
## installing
1. Create a folder called `uiprompt` in your resources directory.
2. Copy `fxmanifest.lua` and `uiprompt.lua` to this folder.
3. Add `start uiprompt` to `server.cfg`.
## using
In any resources where you want to use this library, add `@uiprompt/uiprompt.lua` as a client script in `fxmanifest.lua`:
'''lua
fx_version "cerulean"
game "rdr3"
rdr3_warning "I acknowledge that this is a prerelease build of RedM, and I am aware my resources *will* become incompatible once RedM ships."
client_scripts {
	"@uiprompt/uiprompt.lua",
	"client.lua"
}
'''
## example
'''lua
local promptGroup = UipromptGroup:new("Test")
local prompt1 = Uiprompt:new(`INPUT_DYNAMIC_SCENARIO`, "Test 1", promptGroup)
prompt1:setHoldMode(true)
local prompt2 = Uiprompt:new(`INPUT_RELOAD`, "Test 2", promptGroup)
prompt2:setHoldMode(true)
promptGroup:setOnHoldModeJustCompleted(function(group, prompt)
	TriggerEvent("chat:addMessage", {args={"You held " .. prompt:getText() .. "!"}})
end)
UipromptManager:startEventThread()
'''
Further documentation and code examples are provided here: https://kibook.github.io/redm-uiprompt
JRS Core · فريمورك RedM مجاني ومفتوح المصدر · من فريق JRS