Anyone can explain me how to replace paintjobs?
I wrote this script and it's not working
function replacepaintjob()
paintjob1 = engineLoadTXD ( "elegy1.txd" )
engineImportTXD (paintjob1, [562]={0})
paintjob2 = engineLoadTXD ( "elegy2.txd" )
engineImportTXD (paintjob2, [562]={1})
paintjob3 = engineLoadTXD ( "elegy3.txd" )
engineImportTXD (paintjob3, [562]={2})
end
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replacepaintjob)
addCommandHandler ( "reloadmodel", replacepaintjob )
And please explain me how to use paintjob IDs in MTA Wiki Paintjob.