Jump to content
  • 0

Brockie

Question

Here's the line of code:

if (_type == "SUV_TK_CIV_EP1") then {_object setVehicleInit "this setObjectTexture [0, "\DayZ_Epoch_11.Chernarus\custom\SUV.paa"];"};

Here's the error I'm getting

Error in expression <VehicleInit "this setObjectTexture [0, "\DayZ_Epoch_11.Chernarus\custom\SUV.paa">
Error position: <\DayZ_Epoch_11.Chernarus\custom\SUV.paa">
Error Missing ;
File z\addons\dayz_server\system\server_monitor.sqf, line 126

 I'm not sure if I should replace the quotes with brackets or if I'm just missing a semi colon or what, I'm not very good at formatting, can someone help me fix this one liner please? 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Found the answer from raymix here:  

 

seems it was missing a semi colon like it said after all.  (Not to mention I had the wrong file extension, lol)

 

Here's what worked for me: (note there is an extra semi colon)

if (_type == "SUV_TK_CIV_EP1") then {_object setVehicleInit 'this setObjectTexture [0, ''custom\SUV.jpg''];';};
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...