Asking a player
A card at the top of the screen, without stopping their game: they accept or refuse with two keys (actions requestAccept / requestDeny, Y / N by default, in the game's key settings; the number of requests waiting shows on the card). For giving keys, an invitation to a gang or a company, a trade, being carried, a duel.
lua
local answer = RLX.RequestPlayer(target, { title = "Car keys", text = "John gives you the keys of his Sultan.", icon = "key", timeout = 15 })
-- true (accepted), false (refused), nil (no answer, left)One card at a time per player: the next ones wait their turn (5 at most). It waits: call it in a handler or a thread.