⚙️Config
Dadi's Japanese Restaurant - Configuration Guide
Welcome to the configuration guide for Dadi's Japanese Restaurant script. Below you will find a detailed explanation of each configuration option available in the script, allowing you to customize the script to better fit your server's needs.
General Configuration
EnableBlip
: When set totrue
, a blip will be shown on the map to indicate the location of the restaurant.autoSQL
: When set totrue
, the SQL statements required to execute in the database for the proper functioning of the script will be automatically executed when the script is initiated through the server without the need to do it manually.MeatPrice
,PotatoePrice
,BunPrice
: These settings allow you to set the price for meat, potatoes, and buns, respectively, in your in-game currency.DeliveryCooldown
: This setting controls the cooldown time (in minutes) between deliveries.UseTarget
: Defines the targeting system to use, set by default to'ox_target'
. It is advised not to change this unless you're familiar with FiveM scripts.Scenario
: Determines the animation scenario for the boss menu interaction. A link is provided for more scenario codes.JobName
: The identifier for the job related to the script, recommended not to be changed.UseCustomNotify
: Set tofalse
by default, change totrue
if you wish to use a custom notification system.
Custom Notifications
Only relevant if UseCustomNotify
is true
. Example provided for integrating with the NotifySystem
.
Location Coordinates
Bosscoords
: Coordinates for where the NPC for the BossMenu will spawn.
Zones
Defines several important areas within the restaurant for immersion and gameplay purposes, such as cashier, drink grabbing zones, freezer zones, food preparation, and cooking areas.
Recipes
Specifies the recipes that can be prepared, their required ingredients, and the animations associated with each preparation step.
Localization
LangType
: Defines the type of notifications (error
,success
,info
).Lang
: Customizable messages for various events including successful payments for different items and order payments.
Configuration Options in config.lua
config.lua
The config.lua
file is a crucial component for customizing the functionality of your restaurant within your server. Here’s an overview of key settings you can adjust:
Recipes and Ingredients
Recipes
: Define the list of recipes available in your restaurant. For each recipe, specify the name, the ingredients required, and the quantity of each ingredient.Ingredients
: Provide a comprehensive list of all ingredients that can be used within the game. This includes their availability status, cost, and vendors.
Animation Settings
PreparationAnimations
: This section allows you to link specific animations to various preparation steps of each recipe. Define the animation by providing the appropriate animation code or reference.
Localization Settings
LangType
: Utilize this to set the type of notifications your server will use. Options includeerror
,success
, andinfo
.Lang
: Define custom messages for a variety of events, such as successful payments for various items and order payments. This allows for a more immersive and localized gaming experience.
By configuring these settings appropriately, you can ensure that your restaurant offers a unique experience, tailored to the preferences of your server's player base.
By customizing these settings, you can adapt the restaurant's functionality to fit the roleplay scenario or gameplay mechanics of your server.
Last updated