OnPlayerMoneyChange: Difference between revisions
Jump to navigation
Jump to search
m (Não é preciso adicionar créditos ao incluir conteúdo na página, pois o nome do usuário já é registrado no histórico da página.) |
mNo edit summary |
||
Line 12: | Line 12: | ||
==Source== | ==Source== | ||
The [[event system#Event source|source]] of this event is the [[ | The [[event system#Event source|source]] of this event is the [[player]] with which the element had its money changed. | ||
==Example== | ==Example== |
Revision as of 13:31, 23 December 2023
This event identifies changes to the player's money if it is changed on the server-side.
Parameters
int oldValue, int newValue
- oldValue: the int amount of money before being changed.
- newValue: the int amount of money after being changed.
Source
The source of this event is the player with which the element had its money changed.
Example
Sending a message when money is changed with the old quantity and the new quantity
function moneyChange(oldValue, newValue) outputChatBox("Your money changed from " .. oldValue .. " to " .. newValue, source) --Message when his money is changed end addEventHandler("onPlayerMoneyChange", getRootElement(), moneyChange)
See Also
Money events
This page is marked for deletion. | |
Reason: Useless template. See onPlayerMoneyChange Actions: Delete (Administrators) - Discuss - What links here - Category
|
Event functions
- addEvent
- addEventHandler
- cancelEvent
- cancelLatentEvent
- getCancelReason
- getEventHandlers
- getLatentEventHandles
- getLatentEventStatus
- removeEventHandler
- triggerEvent
- triggerClientEvent
- triggerLatentClientEvent
- wasEventCancelled