Sziasztok! Fórumon találtam egy paintjob rendszert be is raktam a szerveremre próbálgatni viszont a debugscript hibát ir ki és igy nem tudja a kocsira tölteni a pj-t.
Ezt a hibát irja ki:
https://gyazo.com/0f7882d06490d2f7ef6ce702ec74973f És itt lenne az a része a scriptnek ami rossz:
function setVehiclePaintjobTexture(vehicle, paintjob)
if (vehicle and paintjob) then
local vehicleID = getElementModel(vehicle);
if (vehicleID and Paintjob.Textures[vehicleID][paintjob]) then
Paintjob.VehicleList.Shader[vehicle] = dxCreateShader(\'Assets/Files/Paintjob.fx\', 0, 0, true, \'vehicle\');
Paintjob.VehicleList.Texture[vehicle] = dxCreateTexture(Paintjob.File .. Paintjob.Textures[vehicleID][paintjob][2] .. Paintjob.Format);
if (Paintjob.VehicleList.Shader[vehicle] and Paintjob.VehicleList.Texture[vehicle]) then
dxSetShaderValue(Paintjob.VehicleList.Shader[vehicle], \'gTexture\', Paintjob.VehicleList.Texture[vehicle]);
engineApplyShaderToWorldTexture(Paintjob.VehicleList.Shader[vehicle], Paintjob.Textures[vehicleID][paintjob][1], vehicle);
end
end
end
end