OnClientRender: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
|||
Line 9: | Line 9: | ||
The [[event system#Event source|source]] of this event is the client's [[root element]]. | The [[event system#Event source|source]] of this event is the client's [[root element]]. | ||
function showPic() | |||
dxDrawImage(1074.0,898.0,187.0,107.0,"images/TestPic",0.0,0.0,0.0,tocolor(255,255,255,255),false) | |||
end | |||
addEventHandler("onClientRender",root,showPic) | |||
==See Also== | ==See Also== |
Revision as of 20:11, 23 June 2010
This event is triggered every time GTA renders a new frame. It is required for the DirectX drawing functions, and also useful for other clientside operations that have to be applied repeatedly with very short time differences between them.
Parameters
None
Source
The source of this event is the client's root element.
function showPic()
dxDrawImage(1074.0,898.0,187.0,107.0,"images/TestPic",0.0,0.0,0.0,tocolor(255,255,255,255),false)
end addEventHandler("onClientRender",root,showPic)
See Also
Other client events
- onClientChatMessage
- onClientConsole
- onClientDebugMessage
- onClientExplosion
- onClientFileDownloadComplete
- onClientHUDRender
- onClientMinimize
- onClientMTAFocusChange
- onClientPedsProcessed
- onClientPlayerNetworkStatus
- onClientPreRender
- onClientRender
- onClientRestore
- onClientTransferBoxProgressChange
- onClientTransferBoxVisibilityChange
- onClientWorldSound
Client event functions
- triggerLatentServerEvent
- triggerServerEvent
- Shared
- addEvent
- addEventHandler
- cancelEvent
- cancelLatentEvent
- getEventHandlers
- getLatentEventHandles
- getLatentEventStatus
- removeEventHandler
- triggerEvent
- wasEventCancelled