Page cover

🎯Interaction Locations

  • You can define target interaction locations for various events in the interactionLocations.lua file.

  • The key is the location name and must match throughout

  • Set enabled to true to use this interaction location

  • Set debug to true to visually debug the target zone

  • The Name must be unique and related to the location

  • The Location coords must be vector3

  • The Radius is the size of the zone

  • The Distance is the maximum target interaction distance

  • The Icon is the target icon

  • The Label is the target label

  • The Job is the job required to interact with this location and must match the job you define in Config.CoreSettings.Jobs

  • The Event is the name of the event you want to trigger. Ensure you have both events: lusty94_jobdeliveries:client:OpenDeliveries and lusty94_jobdeliveries:client:OpenMenu

    These events are required to open the main delivery menu and the vehicle rental menu

  • The args must pass the locationName for the relevant events in order to function correctly. This should always be the same as the key

  • Target interaction locations are only displayed for players whose job matches the jobs defined in Config.CoreSettings.Jobs and are removed dynamically when they disconnect or their job is updated to save resources and improve overall performance


--interaction locations per job delivery location
Config.InteractionLocations = {
    ['Up & Atom'] = { -- the key is the location name and must match throughout
        {
            enabled = true, -- set to true to enable this zone
            debug = true, -- debug this zone
            Name = 'up&atom_mainmenu', -- name of the zone must be uique
            Location = vector3(89.93, 291.5, 110.53), -- target zone location (must be vector3)
            Radius = 0.5, Distance = 3.0, -- radius of zone and target interaction distance
            Icon = 'fa-solid fa-truck-fast', -- target icon
            Label = 'Customer Deliveries', -- target label
            Job = Config.CoreSettings.Jobs['Up & Atom'].name, -- job name
            Event = 'lusty94_jobdeliveries:client:OpenDeliveries', -- event name
            args = { locationName = 'Up & Atom' }, -- βœ… Make Sure To Pass locationName
        },
        {
            enabled = true, -- set to true to enable this zone
            debug = true, -- debug this zone
            Name = 'up&atom_vehiclespawner', -- name of the zone must be uique
            Location = vector3(88.65, 298.83, 110.81), -- target zone location (must be vector3)
            Radius = 0.5, Distance = 3.0, -- radius of zone and target interaction distance
            Icon = 'fa-solid fa-truck-fast', -- target icon
            Label = 'Get Delivery Vehicle', -- target label
            Job = Config.CoreSettings.Jobs['Up & Atom'].name, -- job name
            Event = 'lusty94_jobdeliveries:client:OpenMenu', -- event name
            args = { locationName = 'Up & Atom' }, -- βœ… Make Sure To Pass locationName
        },
    },
}

Last updated