Show Prompt

Function to show the native prompt system within RSG

exports['rsg-core']:createPrompt(
    v.location,  -- The location identifier for the prompt
    v.coords,    -- The coordinates where the prompt will appear
    RSGCore.Shared.Keybinds[Config.KeyShop],  -- The keybind for interaction
    Lang:t('menu.open') .. v.name,  -- The message displayed to the player
    {
        type = 'client',  -- Type of the prompt
        event = 'SOME EVENT HERE',  -- Event triggered on interaction
        args = {},  -- Additional arguments for the event
    }
)

Delete Prompt

  • createdEntries[i].handle: This retrieves the handle of the specific prompt you wish to delete from the createdEntries table, where i is the index of the entry.
exports['rsg-core']:deletePrompt(createdEntries[i].handle)