JRS CORE문서
스크립트

World

[WORLD] 폴더의 스크립트 6개

World features: towns, travel, teleports, canoes and more.

이 폴더에는 스크립트 6개가 있습니다. 아래 탭에서 고르세요.

Free (included in JRS Core)   jrs_canoe

JRS Core canoes - rent canoes from riverside carpenters and carry them

Resource jrs_canoe
Folder [WORLD]
Version 1.0.0
Author JRS TEAM
Depends on jrs_core
Interface No
Code size 1,912 Lua lines

Exports

GetCanoeEntityObject, IsCarryingCanoe, IsModelCanoe, OpenCanoeRentingShop

config.lua - 옵션 13개#

General

Setting Default What it does
Language "en" 'en' or 'ar'
PromptAction table prompt action에서 플레이어에게 보이는 텍스트입니다. 번역하거나 이름을 바꾸려면 수정하세요.
CanoeActionPrompt table canoe action prompt에서 플레이어에게 보이는 텍스트입니다. 번역하거나 이름을 바꾸려면 수정하세요.
NPCRenderingSpawnDistance 50.0 npc rendering spawn distance에 적용되는 게임 단위 거리입니다.
RemoveStaminaWhileCarrying table Remove stamina while carrying a canoe?
SetPedMaxMoveBlendRatio 0.8 0.0 - 1.0
PickupCommand "pickupcanoe" The command to pickup the closest canoe.
DropCommand "dropcanoe" The command to drop the closest canoe.
UseInteractPrompt false true = interact through the JRS interaction prompt instead of the classic prompts
Models table Insert all the canoe models here (You might also have custom canoe vehicle object) DO NOT EDIT WITHOUT KNOWLEDGE.
ModelsTargetOptions table The target options are for the JRS interaction prompt support only when targetting a canoe from Config.Models
Stores table stores 항목 테이블입니다. 파일의 예시대로 항목을 추가, 삭제, 수정하세요.
  ↳ RoanokeValley table roanoke valley 항목 테이블입니다. 파일의 예시대로 항목을 추가, 삭제, 수정하세요.

Free (included in JRS Core)   jrs_hotair

JRS Core hot air balloons - hire, fly and carry passengers

Resource jrs_hotair
Folder [WORLD]
Version 1.0.0
Author JRS TEAM
Depends on jrs_core, jrs_inventory
Interface Yes (NUI)
Code size 2,017 Lua lines

Commands

  • /hotair
config.lua - 옵션 15개#

General

Setting Default What it does
Language "en" 'en' or 'ar'
Model "hotAirBalloon01" Balloon vehicle model
HirePrice 50 Flat hire fee (cash). No timers, no cooldowns, no fuel.
PassengerOffsets table Balloon basket seats (offsets relative to the balloon entity) pilot uses the driver seat (-1), passengers attach at these offsets
CruiseSpeed 0.05 drift added per tick
BoostSpeed 0.15 drift added per tick while boost held
MaxAltitudeAGL 150.0 ceiling above ground level
StoreMaxSpeed 3.0 m/s, balloon must be near-stationary to store
StoreMaxHeightAGL 4.0 must be close to the ground to store
BoardMaxSpeed 3.0 same limits for boarding / piloting
BoardMaxHeightAGL 4.0 board max height agl의 상한입니다.
TargetDistance 6.0 prompt distance (balloon is a large entity)
StorageMaxWeight 100000 Balloon storage (JRS storage per character, slots)
StorageMaxSlots 20 storage max slots의 상한입니다.
Docks table Add as many docks as you like, one NPC + blip + target is created per entry automatically. Ground Z is resolved at runtime.

Free (included in JRS Core)   jrs_npcs

JRS Core ambient NPCs - place townsfolk with scenarios, blips and optional voice lines

Resource jrs_npcs
Folder [WORLD]
Version 1.0.0
Author JRS TEAM
Interface No
Code size Lua 147줄
config.lua - 옵션 3개#

General

Setting Default What it does
SpawnDistance 40.0 NPC appears inside this radius, disappears outside it
FadeIn true fade in 스위치: true = 켜짐, false = 꺼짐(기본값 true).
Peds table peds에 쓰는 게임 모델 또는 엔티티입니다.

Free (included in JRS Core)   jrs_radius

A radius player culling script for jrs core framework

Resource jrs_radius
Folder [WORLD]
Version 1.0
Author JRS TEAM
Interface No
Code size Lua 85줄

Free (included in JRS Core)   jrs_teleports

JRS Core teleports - enter / leave doors that use a teleport, optionally job-locked

Resource jrs_teleports
Folder [WORLD]
Version 1.0.0
Author JRS TEAM
Depends on jrs_core
Interface No
Code size Lua 883줄
config.lua - 옵션 3개#

General

Setting Default What it does
Language "en" 'en' or 'ar'
PromptKey 0xCEFD9220 E (hold)
Locations table Each entry: label, enter / exit = vector4(x, y, z, heading), distance, jobs = { 'job' } or false

Free (included in JRS Core)   jrs_track

JRS Core horse race tracks - build checkpoint routes, save them and race

Resource jrs_track
Folder [WORLD]
Version 1.0.0
Author JRS TEAM
Depends on jrs_core, oxmysql
Interface No
Languages ar, en
Code size 2,286 Lua lines

Commands

  • /race
  • /racerace
  • /racewebhooktest

Database tables

horse_race_tracks

shared/config.lua - 옵션 8개#

General

Setting Default What it does
Locale "en" 'en' or 'ar'

url is the fallback webhook used for any event that doesn't set its own

Setting Default What it does
  ↳ enabled false master switch; everything below is inert until this is true
  ↳ url "" e.g. 'https://discord.com/api/webhooks/XXXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
  ↳ botName "JRS-Track" bot name에서 플레이어에게 보이는 텍스트입니다. 번역하거나 이름을 바꾸려면 수정하세요.
  ↳ botAvatar "" optional icon url shown as the webhook's avatar
  ↳ footer "JRS-Track Logs" footer 설정입니다.
  ↳ minIntervalMs 350 Minimum time (ms) between two posts to the same webhook URL. Discord rate-limits webhooks; this keeps a burst of events (e.g. everyone finishing at once) from tripping it.
  ↳ events table events 항목 테이블입니다. 파일의 예시대로 항목을 추가, 삭제, 수정하세요.
JRS Core · 무료 오픈소스 RedM 프레임워크 · JRS TEAM 제작