Installation
Installation
1. Dependencies
Install and start ox_lib before this resource. If you plan to use database storage, oxmysql must also be running.
इस संसाधन से पहले ox_lib को इंस्टॉल और शुरू करें। यदि आप डेटाबेस स्टोरेज का उपयोग करने की योजना बना रहे हैं, तो oxmysql भी चलना चाहिए।
2. Drop the resource in
Place bupa-safezonecreator in your resources folder (for example inside a [BUPA] category folder) and add it to your server.cfg.
bupa-safezonecreator को अपने resources फ़ोल्डर में रखें (उदाहरण के लिए किसी [BUPA] कैटेगरी फ़ोल्डर के अंदर) और इसे अपने server.cfg में जोड़ें।
3. server.cfg — ensure order
ox_lib (and oxmysql, if used) must start before the resource.
ox_lib (और oxmysql, यदि उपयोग किया जाता है) को संसाधन से पहले शुरू होना चाहिए।
ensure ox_lib
ensure oxmysql # only if you use Storage = 'db'
ensure bupa-safezonecreator4. Admin access
Opening the creator is gated. During testing it is open to everyone — lock it down before you go live. क्रिएटर को खोलना प्रतिबंधित है। परीक्षण के दौरान यह सभी के लिए खुला है — लाइव होने से पहले इसे सुरक्षित कर लें।
Config.AdminOnly = false -- TODO: set true before release (currently open to everyone)
Config.AdminAce = 'bupa.safezone'
Config.AdminGroups = { 'admin', 'superadmin', 'god' }
Config.CustomAdmin = false -- true = use your own IsPlayerAdmin() in server/editable.luaOnce AdminOnly = true, a player passes the gate if any of these is true:
एक बार AdminOnly = true हो जाने पर, कोई खिलाड़ी इस प्रतिबंध को पार कर जाता है यदि इनमें से कोई भी सत्य है:
- They hold the ACE permission — grant it with: वे ACE अनुमति रखते हैं — इसके साथ प्रदान करें:
add_ace group.admin bupa.safezone allow
- Their framework group is in
Config.AdminGroups(ESX group, QB-Core job name /HasPermission('admin'), QBox job name). उनका फ्रेमवर्क ग्रुपConfig.AdminGroupsमें है (ESX ग्रुप, QB-Core जॉब नाम /HasPermission('admin'), QBox जॉब नाम)। Config.CustomAdmin = trueand yourEditable.isAdmin(src)inserver/editable.luareturnstrue.Config.CustomAdmin = trueऔरserver/editable.luaमें आपकाEditable.isAdmin(src)trueरिटर्न करता है।
Config.AdminOnly ships as false so you can test immediately. Set it to true before release, or anyone can open the creator.
Config.AdminOnly डिफ़ॉल्ट रूप से false आता है ताकि आप तुरंत परीक्षण कर सकें। रिलीज़ से पहले इसे true पर सेट करें, अन्यथा कोई भी क्रिएटर खोल सकता है।
5. Storage — JSON or database
Config.Storage = 'json' -- 'json' | 'db'json(default) — zones are written todata/zones.jsoninside the resource. Zero setup.json(डिफ़ॉल्ट) — ज़ोन रिसोर्स के अंदरdata/zones.jsonमें लिखे जाते हैं। शून्य सेटअप।db— zones are stored in oxmysql. The table is created automatically on first start; you do not need to import any SQL:db— ज़ोन oxmysql में स्टोर किए जाते हैं। पहली बार शुरू होने पर टेबल अपने आप बन जाती है; आपको किसी भी SQL को इम्पोर्ट करने की आवश्यकता नहीं है:
CREATE TABLE IF NOT EXISTS bupa_safezones (
id VARCHAR(64) PRIMARY KEY,
data LONGTEXT
);6. Language
Language is set globally via ox_lib's locale convar. Add to server.cfg:
भाषा ox_lib के लोकेल कॉनवॉर के माध्यम से विश्व स्तर पर सेट की जाती है। server.cfg में जोड़ें:
setr ox:locale "tr"English is the fallback for any missing key. See Localization for the full list of shipped languages. किसी भी गुम कुंजी के लिए अंग्रेजी फ़ॉलबैक है। उपलब्ध भाषाओं की पूरी सूची के लिए Localization देखें।