🪛Installation & Configuration

1

Add the resource

Drag the dynyx_ebtcards folder into your resources directory. Make sure it’s properly placed so your server can access it. Don’t forget to add ensure dynyx_ebtcards to your server.cfg file to activate the resource.

2

Install Dependencies

Ensure all required dependencies for the script are installed and up to date. Dependencies usually include core resources like the framework (QBCore, ESX), target systems (e.g., ox_target), and an inventory system (like ox_inventory, qb-inventory, or ps-inventory). Missing dependencies may prevent the script from working properly.

3

Import the SQL File

Open your database (e.g., HeidiSQL, phpMyAdmin) and import the provided SQL file. This will create the necessary tables and data for the script to function correctly.

4

Configure Inventory Integration

Navigate to the inventory folder. Each inventory system requires a slightly different configuration. Follow the guide specific to your inventory system (like ox_inventory, qb-inventory, or ps-inventory). The item images for your inventory can be found in the images folder to ensure seamless visual integration.

Configuration:

Config = {}

Config.Inventory = "qb-inventory" -- "ox_inventory" / "qb-inventory" / "ps-inventory"
Config.Target = "qb-target" -- "ox_target" / "qb-target"

-- Default 1 week
Config.CooldownTillNextEBT = 10080 -- (Minutes) This is Stored in the SQL so if the players logs off this timer will keep going. This is how long until the player can get approved for another EBT card. 

-- Max & Min EBT Balance that a player can apply for.
Config.MaxApply = 4000
Config.MinApply = 50

Config.Webhook = false
Config.Webhook = "PLACE_YOUR_WEBHOOK_HERE" --  For Discord Logs

Config.GovernmentPed = "csb_tomcasino" --  Ped Name
Config.GovernmentPedCoords = vector4(-544.8433, -204.5809, 37.2151, 211.2208) -- Ped Coords
Config.Blip = true -- Display Blip on Ped

Strings = {
    SelectPayCash = "Cash",
    SelectPayEBT = "EBT Card",
    PaymentType = "Payment Type",
    PaymentTypeDesc = "Please select either Cash or EBT",
    GovServicesTitle = "Government Services",
    GoveServicesPedTargetLabel = "Government Services",
    ContextTitle = "Apply For A EBT Card",
    ContextDesc = "Put an Application",
    DialogTitle = "EBT Application",

    -- Labels for EBT Application Form
    SliderLabel = "How much are you seeking to receive on your EBT Card? ($)",
    SliderDescription = "Select an amount between $"..Config.MinApply .. " and $".. Config.MaxApply,
    HouseholdMembersLabel = "Number of Household Members",
    HouseholdMembersDescription = "Enter the total number of people in your household",
    MonthlyIncomeLabel = "Monthly Income ($)",
    MonthlyIncomeDescription = "Enter the amount of money you make per month",
    PrimaryReasonLabel = "Primary Reason for Applying",
    PrimaryReasonDescription = "Why are you applying for an EBT Card?",
    TypeOfAssistanceLabel = "Type of Assistance Needed",
    TypeOfAssistanceDescription = "Select the type(s) of assistance you need:",
    EmploymentStatusLabel = "Current Employment Status",
    EmploymentStatusDescription = "Select your current employment status:",
    DietaryRestrictionsLabel = "Do You Have Any Dietary Restrictions?",
    DietaryRestrictionsDescription = "Select dietary needs for food assistance:",
    ResidencyLabel = "Are You a Resident of This State?",
    ResidencyDescription = "Select your place of residence:",
    AgreeInformationLabel = "Do you agree to provide accurate and truthful information?",
    AgreeTermsLabel = "I agree to the terms and conditions of the EBT program.",

    -- Options for Primary Reason
    LowIncome = "Low Income",
    Unemployment = "Unemployment",
    EmergencyExpenses = "Emergency Expenses",
    MedicalBills = "High Medical Bills",
    OtherReason = "Other",

    -- Options for Type of Assistance
    FoodAssistance = "Food Assistance",
    CashAssistance = "Cash Assistance",
    HousingSupport = "Housing Support",
    ChildcareSupport = "Childcare Support",
    UtilityBills = "Help with Utility Bills",
    MedicalExpenses = "Help with Medical Expenses",
    OtherAssistance = "Other",

    -- Options for Employment Status
    EmployedFull = "Employed Full-Time",
    EmployedPart = "Employed Part-Time",
    Unemployed = "Unemployed",
    Student = "Student",
    Retired = "Retired",
    Disabled = "Unable to Work",

    -- Options for Dietary Restrictions
    NoRestrictions = "No Restrictions",
    Vegetarian = "Vegetarian",
    Vegan = "Vegan",
    Halal = "Halal",
    Kosher = "Kosher",
    GlutenFree = "Gluten-Free",
    FoodAllergies = "Food Allergies",

    -- Options for Residency
    LosSantos = "Los Santos County",
    BlaineCounty = "Blaine County",
    NotResident = "No, I am not a resident of this state",

    -- Notification Title 
    NotifyTitle = "EBT",

    AlertHeader = "EBT Application",
    AlertContent = "Congratulations, You have received an EBT Card from the Government. You can apply for another card in 1 week."

}

Last updated