If you're making new multiarena, then there is no such events. You should make your own event when start is starting.
table.insert -- objects
triggerClientEvent
destroyElement -- object
Edit:
If map has scripts, hard to tell.
1. Save objects into table.
2. Send table to client
3. Foreach table + createObject
When map is start, then delete all old object and do new table at step 1st. Is that hard?
Please, next time read the wiki.
function onChatMessage ( _, theElement )
if ( getElementType ( theElement ) ~= "player" ) then
cancelEvent ( )
end
end
addEventHandler ( "onChatMessage", root, onChatMessage )
If you want make like 9GAG browser.
dxCreateTexture
dxGetMaterialSize
dxDrawImage
fileCreate
fileExists
fileWrite
Server-side:
fetchRemote
triggerClientEvent
I know there are both dxgui on community, but they outdated. So I made my own project for User Interface and works perfectly.
Features:
Multi-theme. You can change theme for all player without restart MTA/Reconnect.
Multi-screen render.
Event system.
Clip system.
Color-coded is allowed. But you have to use UI_SetColorCoded function.
Components:
Window
Button
Label
RadioButton
CheckBox
ProgressBar
Custom Font
Will be more soon. Sure check at subversion ( Google code )
Here is the screenshot:
https://www.dropbox.com/s/v6dn2pwnp5icmzk/UI_System.png
https://www.dropbox.com/s/ezvolt72hf1bg ... ystem2.png
Subversion:
http://code.google.com/p/ui-mta/source/list