Jump to content
Sign in to follow this  
PriMan

Custom vehicles - problem with textures

Recommended Posts

Hello guys! I have a problem that I could not solve on my own. We make a custom model of police car for Project Zomboid (Link). After we upload it to the Workshop, and we saw that the textures of light, damages and rust do not worked. In lua file the textures was writed to the model, but it still does not work. Anyone know, how fix that problem? 

 

Spoiler

require 'Reloading/ISReloadManager'
local MOD_ID = "EnhancedVehicles";
local MOD_NAME = "Enhance Vehicles";
local MOD_VERSION = "0.1";
local MOD_AUTHOR = "PriMan";

local VehicleCommands = {}
local Commands = {}

local function info()
    dir = getDir(MOD_ID); 
        loadStaticZomboidModel("Vehicles_CapricePolice",
    dir.."/media/models/Vehicles_CapricePolice.txt",
    dir.."/media/scripts/Vehicles/carnormal.txt",
    dir.."/media/textures/Vehicles/CarLightsPolice/Vehicle_CarLightsPolice_Lights.png",
    dir.."/media/textures/Vehicles/CarLightsPolice/Vehicle_CarLightsPolice_Shell.png",
    dir.."/media/textures/Vehicles/CarLightsPolice/Vehicle_CarLightsPolice_Rust.png",
    dir.."/media/textures/Vehicles/CarLightsPolice/Vehicle_CarLightsPolice_Mask.png",
    dir.."/media/textures/Vehicles/CarLightsPolice/Vehicle_CarLightsPolice_Overlays_DAMAGED_01.png",
    dir.."/media/textures/Vehicles/CarLightsPolice/Vehicle_CarLightsPolice_Overlays_DAMAGED_02.png",
    dir.."/media/textures/Vehicles/CarLightsPolice/Vehicle_CarLightsPolice_Shell_DAMAGED_01.png",
    dir.."/media/textures/Vehicles/CarLightsPolice/Vehicle_CarLightsPolice_Shell_DAMAGED_02.png");

    
    loadStaticZomboidModel("Vehicles_WheelPolice",
    dir.."/media/models/Vehicles_WheelPolice.txt",
    dir.."/media/textures/Vehicles/Vehicle_WheelPolice.png");

    
    print("Mod Loaded: " .. MOD_NAME .. " by " .. MOD_AUTHOR .. " (v" .. MOD_VERSION .. ")");
end

Events.OnInitWorld.Add(info);

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...