View Issue Details

IDProjectCategoryView StatusLast Update
0009033Multi Theft Auto : San AndreasScriptingpublic2018-07-03 14:51
ReporterIIYAMA12 Assigned ToBonus1702  
Status resolvedResolutionfixed 
Product Version1.5.4 
Target Version1.5.6Fixed in Version1.5.6 
Summary0009033: setVehicleColor clientside directly after creation doesn't work

Set setVehicleColor clientside directly after creation doesn't change the colors.
I tried it on the vehicle models 429 and 405.

Take a closer look at the examples below and try them out.

Steps To Reproduce

/start runcode

srun x,y,z = getElementPosition(getRandomPlayer())
srun setVehicleColor (createVehicle (429, x,y,z,0,0,0),255,255,255,255,255,255,255,255,255)
-- works

crun x,y,z = getElementPosition(localPlayer)
crun setVehicleColor (createVehicle (429, x,y,z,0,0,0),255,255,255,255,255,255,255,255,255)
-- doesn't work

TagsNo tags attached.



2016-08-14 00:03

viewer   ~~0025045

I tried using setTimer to delay setVehicleColor in order to avoid this issue and it changed vehicle color only for streamed-in clientside vehicles.


2018-07-03 14:28

reporter   ~~0026596

Created PR:

Issue History

Date Modified Username Field Change