Function to show the native prompt system within RSG
Copy
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 })
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.