View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001959||Multi Theft Auto : San Andreas||Scripting||public||2007-04-14 00:22||2007-04-14 12:15|
|Target Version||Fixed in Version||mtasadm_v1.0-dp1|
|Summary||0001959: Client getElementsByType doesn't work|
It doesn't work when you pass a custom element type, I haven't tried with a built-in element type.
Similar test code worked in a server script, but not in a client script (it doesn't output to chatbox):
addEventHandler("onClientResourceStart", root, "onClientRaceStart")
|Tags||No tags attached.|
It's not that the function itself doesn't work. I've tried mapping the client element tree from the root and the elements from serverside race.map do not exist there.
Yep, not all the needed elements are passed to the client yet.