Announcement

If you are having trouble logging in, please reset your password.
If you are not getting an activation email, please check your spam or
use the "Contact Us" to contact an admin.
March 14, 2015, 06:03:11 AM Last Edit: January 01, 1970, 12:00:00 AM by Guest
I decompiled some of the LUA files of Mafia2.




But I couldn't understand them.


 




For example :


 




I noticed that each LUA file has these two functions:


 







Quotefunction
onGameInit(_ARG_0_
)




xxxxxxx




end



 




function
onEvent(_ARG_0_
,
_ARG_1_
)




xxxxxxx




end









 




1. Is the function "onGameInit" the main function, or the function "onEvent"?


 




2. What do the _ARG_0_
and
_ARG_1_
 mean?


 


 



<hr class="bbcode_rule" />
Thank you !!!