Emotes: exports, events & commands
Generated from the Lua in the release. Descriptions are the comments above each definition. Event names and export names are public contracts: they do not change between versions.
Exports
Call them as exports['lumo-emotes']:Name(...) from the side named in each table.
Client
| Export | Description |
|---|---|
CancelIfActive() | qb-smallresources owns X and calls this export before toggling hands-up. A single key command avoids the ordering race caused by two mappings on X. |
closeMenu() | |
current() | |
IsHandsUp() | Compatibility for resources that used qb-smallresources:getHandsup(). The Lumo action key is now the single owner of the hands-up state. |
isPlaying() | |
list() | |
openMenu() | |
play(id) | |
stop() |
Events
- Client events are triggered on the player:
TriggerClientEvent(name, src, ...)from the server, orTriggerEvent(name, ...)on the client. - Server events are triggered with
TriggerServerEvent(name, ...). The server checks the player, distance and amounts itself; never rely on a client to do it.
Client
| Event | Arguments | Description |
|---|---|---|
emotes:OpenMenu | Back-compat with the events the previous version exposed. | |
lumo-emotes:client:profile | saved, stored | |
lumo-emotes:client:propSpawned | netId | |
lumo-emotes:client:sharedCancelled | requestId, reason | |
lumo-emotes:client:sharedDeclined | name | |
lumo-emotes:client:sharedPrepare | data | |
lumo-emotes:client:sharedRequest | data | |
lumo-emotes:client:sharedRequestCancelled | requestId | |
lumo-emotes:client:sharedRequestFailed | reason | |
lumo-emotes:client:sharedStart | data | |
lumo-emotes:client:sharedStopped | requestId | |
lumo-emotes:openMenu | ||
lumo-emotes:OpenMenu | ||
lumo-emotes:play | id | |
lumo-emotes:stop | ||
lumo-emotes:toggleMenu | ||
lumo-emotes:ToggleMenu |
Server
| Event | Arguments | Description |
|---|---|---|
lumo-emotes:server:requestProfile | ||
lumo-emotes:server:saveProfile | profile | |
lumo-emotes:server:sharedAnswer | requestId, accepted | |
lumo-emotes:server:sharedReady | requestId, ready, networkTime | |
lumo-emotes:server:sharedRequest | targetId, emoteId | |
lumo-emotes:server:sharedStop | requestId | |
lumo-emotes:server:spawnProp | model, coords |
Commands
| Command | Side | Description |
|---|---|---|
/-lumo_point | client | |
/-lumoemote_wheel | client | |
/emoteplace | client | /emoteplace <name> skips the menu and drops straight into placement mode. |
/expressionreset | client | |
/lumo_crawl | client | |
/lumo_crouch | client | |
/lumo_handsup | client | |
/lumo_ragdoll | client | |
/lumo_shared_accept | client | |
/lumo_shared_decline | client | |
/lumoemote_cancel | client | |
/walkreset | client |