Features
Requests, hint and info card
uniqers-uipackPage 11 of 200 topicsUpdated recently
Requests (accept / decline)
A card that asks a player a yes / no question. They hold Y to accept or hold N to decline before the bar runs out (both keys rebindable). The answer fires your events.
lua
-- client: ask another playerexports['uniqers-uipack']:SendInvite(targetServerId, { header = 'Handshake request', text = 'wants to shake hands with you', icon = 'fa-solid fa-handshake', acceptEvent = 'myres:accepted', declineEvent = 'myres:declined', returnTo = 'sender', -- 'sender' | 'target' holdTime = 1500, duration = 10000,}) RegisterNetEvent('myres:accepted', function(args, result, targetId) end)lua
-- server: ask a player, get the answer on the serverexports['uniqers-uipack']:SendInvite(targetId, { text = 'Join the race?', acceptEvent = 'race:join', returnTo = 'server',})AddEventHandler('race:join', function(args, result, targetId) end)ShowInvite(data) shows the card on yourself only, with no events. Colours, font and position: F7 β Requests. Build one and copy its code in /uipackadmin β UIs.
Sends are rate limited on the server.
Hint
A line at the top of the screen, with a title and an icon if you want them.
lua
exports['uniqers-uipack']:ShowHint({ text = 'Take the van back to the depot' })exports['uniqers-uipack']:ShowHint({ title = 'Job', text = 'Take the van back to the depot', icon = 'fa-solid fa-truck' })exports['uniqers-uipack']:UpdateHint({ text = 'Almost there' })exports['uniqers-uipack']:HideHint() -- from the serverexports['uniqers-uipack']:Hud(playerId, 'hint', 'show', { text = 'Take the van back to the depot' })exports['uniqers-uipack']:Hud(playerId, 'hint', 'hide')Info card
A card in the middle of the screen with an icon or a picture.
lua
exports['uniqers-uipack']:ShowInfoCard({ icon = 'fa-solid fa-circle-info', title = 'Information', text = 'Your shift starts in 5 minutes.' })exports['uniqers-uipack']:ShowInfoCard({ image = 'https://example.com/logo.png', title = 'Welcome', text = 'Enjoy your stay.' })exports['uniqers-uipack']:HideInfoCard() -- from the serverexports['uniqers-uipack']:Hud(playerId, 'card', 'show', { icon = 'fa-solid fa-flag', title = 'Objective', text = 'Reach the pier' })Info pill
The round pill, bottom right: ShowInfoPill({ text }) / HideInfoPill(). See Key hint, info pill and text bar.
Still stuck? Send us your server log on Discord and we will sort it out with you.
Ask on Discord