View Issue Details

IDProjectCategoryView StatusLast Update
0001959Multi Theft Auto : San AndreasScriptingpublic2007-04-14 12:15
Reportererorr404Assigned ToJax 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Versionblue_sa.r2.a12 
Target VersionFixed in Versionmtasadm_v1.0-dp1 
Summary0001959: Client getElementsByType doesn't work
Description

It doesn't work when you pass a custom element type, I haven't tried with a built-in element type.

Additional Information

Similar test code worked in a server script, but not in a client script (it doesn't output to chatbox):

addEventHandler("onClientResourceStart", root, "onClientRaceStart")
function onClientRaceStart(resource)
if (resource == getThisResource()) then
local checkpointsTable = getElementsByType("checkpoints")
for k,v in checkpointsTable do
outputChatBox("Element exists")
end
end
end

TagsNo tags attached.

Activities

jbeta

2007-04-14 07:21

updater   ~~0004350

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.

Jax

2007-04-14 12:15

administrator   ~~0004374

Yep, not all the needed elements are passed to the client yet.

Issue History

Date Modified Username Field Change