Events

Client

AddEventHandler('rm_illegalcorners:client:onSaleCompleted', function(data)
    print(data.playerId)
    print(data.itemName)
    print(data.itemLabel)
    print(data.qty)
    print(data.unitPrice)
end)
Field
Type
Description
Example

playerId

number

ID of the player who completed the sale

42

itemName

string

Internal name of the item

"id_card"

itemLabel

string

Display name of the item

"ID Card"

qty

number

Quantity of items sold

3

unitPrice

number

Price per single unit

150

Server

AddEventHandler('rm_illegalcorners:server:onSaleCompleted', function(data)
    print(data.playerId)
    print(data.playerName)
    print(data.playerIdentifier)
    print(data.itemName)
    print(data.itemLabel)
    print(data.qty)
    print(data.unitPrice)
end)
Field
Type
Description
Example

playerId

number

ID of the player who completed the sale

42

playerName

string

Name of the player

"JohnDoe"

playerIdentifier

string

Unique identifier (e.g., license)

"license:xyz123"

itemName

string

Internal name of the item

"id_card"

itemLabel

string

Display name of the item

"ID Card"

qty

number

Quantity of items sold

3

unitPrice

number

Price per single unit

150

Last updated