Open Blaez opened 2 years ago
--- IMAGE CONFIG HERE ---
-- Images imageUrl1 = "IMAGE.PNG" -- Paste your image URL here (doesn't have to be from imgur) imageUrl2 = "IMAGE.PNG" -- Paste your image URL here (doesn't have to be from imgur) imageUrl3 = "IMAGE.PNG" -- Paste your image URL here (doesn't have to be from imgur) imageUrl4 = "IMAGE.PNG" -- Paste your image URL here (doesn't have to be from imgur) imageUrl5 = "IMAGE.PNG" -- Paste your image URL here (doesn't have to be from imgur) imageUrl6 = "IMAGE.PNG" -- Paste your image URL here (doesn't have to be from imgur)
-- Images N (Pink) imageUrl1n = "IMAGE.PNG" -- Paste your image URL here (doesn't have to be from imgur) imageUrl2n = "IMAGE.PNG" -- Paste your image URL here (doesn't have to be from imgur) imageUrl3n = "IMAGE.PNG" -- Paste your image URL here (doesn't have to be from imgur) imageUrl4n = "IMAGE.PNG" -- Paste your image URL here (doesn't have to be from imgur) imageUrl5n = "IMAGE.PNG" -- Paste your image URL here (doesn't have to be from imgur) imageUrl6n = "IMAGE.PNG" -- Paste your image URL here (doesn't have to be from imgur)
-- ============================================================== PLATE 1 =====================================================================
-- The actual script -- local textureDic = CreateRuntimeTxd('duiTxd1') -- Create custom texture dictionary only needs to be done once local object = CreateDui(imageUrl1, 540, 300) -- Load image into object local handle = GetDuiHandle(object) -- Gets DUI handle from object CreateRuntimeTextureFromDuiHandle(textureDic, "duiTex1", handle) -- Creates the texture "duiTex" in the "duiTxd" dictionary AddReplaceTexture('vehshare', 'plate01', 'duiTxd1', 'duiTex1') -- Applies "duiTex" from "duiTxd" to "plate01" from "vehshare"
local object = CreateDui(imageUrl1n, 540, 300) -- this URL doesn't need to be edited, its just the 2d model for the plate -- Load image into object local handle = GetDuiHandle(object) -- Gets DUI handle from object CreateRuntimeTextureFromDuiHandle(textureDic, "duiTex21", handle) -- Creates the texture "duiTex" in the "duiTxd" dictionary AddReplaceTexture('vehshare', 'plate01_n', 'duiTxd1', 'duiTex21') -- Applies "duiTex2" from "duiTxd" to "plate01_n" from "vehshare"
-- ============================================================== PLATE 2 =====================================================================
-- The actual script -- local textureDic = CreateRuntimeTxd('duiTxd2') -- Create custom texture dictionary only needs to be done once local object = CreateDui(imageUrl2, 540, 300) -- Load image into object local handle = GetDuiHandle(object) -- Gets DUI handle from object CreateRuntimeTextureFromDuiHandle(textureDic, "duiTex2", handle) -- Creates the texture "duiTex" in the "duiTxd" dictionary AddReplaceTexture('vehshare', 'plate02', 'duiTxd2', 'duiTex2') -- Applies "duiTex" from "duiTxd" to "plate01" from "vehshare"
local object = CreateDui(imageUrl2n, 540, 300) -- this URL doesn't need to be edited, its just the 2d model for the plate -- Load image into object local handle = GetDuiHandle(object) -- Gets DUI handle from object CreateRuntimeTextureFromDuiHandle(textureDic, "duiTex22", handle) -- Creates the texture "duiTex" in the "duiTxd" dictionary AddReplaceTexture('vehshare', 'plate02_n', 'duiTxd2', 'duiTex22') -- Applies "duiTex2" from "duiTxd" to "plate01_n" from "vehshare"
-- ============================================================== PLATE 3 =====================================================================
-- The actual script -- local textureDic = CreateRuntimeTxd('duiTxd3') -- Create custom texture dictionary only needs to be done once local object = CreateDui(imageUrl3, 540, 300) -- Load image into object local handle = GetDuiHandle(object) -- Gets DUI handle from object CreateRuntimeTextureFromDuiHandle(textureDic, "duiTex3", handle) -- Creates the texture "duiTex" in the "duiTxd" dictionary AddReplaceTexture('vehshare', 'plate03', 'duiTxd3', 'duiTex3') -- Applies "duiTex" from "duiTxd" to "plate01" from "vehshare"
local object = CreateDui(imageUrl3n, 540, 300) -- this URL doesn't need to be edited, its just the 2d model for the plate -- Load image into object local handle = GetDuiHandle(object) -- Gets DUI handle from object CreateRuntimeTextureFromDuiHandle(textureDic, "duiTex23", handle) -- Creates the texture "duiTex" in the "duiTxd" dictionary AddReplaceTexture('vehshare', 'plate03_n', 'duiTxd3', 'duiTex23') -- Applies "duiTex2" from "duiTxd" to "plate01_n" from "vehshare"
-- ============================================================== PLATE 4 =====================================================================
-- The actual script -- local textureDic = CreateRuntimeTxd('duiTxd4') -- Create custom texture dictionary only needs to be done once local object = CreateDui(imageUrl4, 540, 300) -- Load image into object local handle = GetDuiHandle(object) -- Gets DUI handle from object CreateRuntimeTextureFromDuiHandle(textureDic, "duiTex4", handle) -- Creates the texture "duiTex" in the "duiTxd" dictionary AddReplaceTexture('vehshare', 'plate04', 'duiTxd4', 'duiTex4') -- Applies "duiTex" from "duiTxd" to "plate01" from "vehshare"
local object = CreateDui(imageUrl4n, 540, 300) -- this URL doesn't need to be edited, its just the 2d model for the plate -- Load image into object local handle = GetDuiHandle(object) -- Gets DUI handle from object CreateRuntimeTextureFromDuiHandle(textureDic, "duiTex24", handle) -- Creates the texture "duiTex" in the "duiTxd" dictionary AddReplaceTexture('vehshare', 'plate04_n', 'duiTxd4', 'duiTex24') -- Applies "duiTex2" from "duiTxd" to "plate01_n" from "vehshare"
-- ============================================================== PLATE 5 =====================================================================
-- The actual script -- local textureDic = CreateRuntimeTxd('duiTxd5') -- Create custom texture dictionary only needs to be done once local object = CreateDui(imageUrl5, 540, 300) -- Load image into object local handle = GetDuiHandle(object) -- Gets DUI handle from object CreateRuntimeTextureFromDuiHandle(textureDic, "duiTex5", handle) -- Creates the texture "duiTex" in the "duiTxd" dictionary AddReplaceTexture('vehshare', 'plate05', 'duiTxd5', 'duiTex5') -- Applies "duiTex" from "duiTxd" to "plate01" from "vehshare"
local object = CreateDui(imageUrl5n, 540, 300) -- this URL doesn't need to be edited, its just the 2d model for the plate -- Load image into object local handle = GetDuiHandle(object) -- Gets DUI handle from object CreateRuntimeTextureFromDuiHandle(textureDic, "duiTex25", handle) -- Creates the texture "duiTex" in the "duiTxd" dictionary AddReplaceTexture('vehshare', 'plate05_n', 'duiTxd5', 'duiTex25') -- Applies "duiTex2" from "duiTxd" to "plate01_n" from "vehshare"
-- ============================================================== PLATE 6 =====================================================================
-- The actual script -- local textureDic = CreateRuntimeTxd('duiTxd6') -- Create custom texture dictionary only needs to be done once local object = CreateDui(imageUrl, 540, 300) -- Load image into object local handle = GetDuiHandle(object) -- Gets DUI handle from object CreateRuntimeTextureFromDuiHandle(textureDic, "duiTex6", handle) -- Creates the texture "duiTex" in the "duiTxd" dictionary AddReplaceTexture('vehshare', 'yankton_plate', 'duiTxd6', 'duiTex6') -- Applies "duiTex" from "duiTxd" to "plate01" from "vehshare" local object = CreateDui(imageUrl1n, 540, 300) -- this URL doesn't need to be edited, its just the 2d model for the plate -- Load image into object local handle = GetDuiHandle(object) -- Gets DUI handle from object CreateRuntimeTextureFromDuiHandle(textureDic, "duiTex26", handle) -- Creates the texture "duiTex" in the "duiTxd" dictionary AddReplaceTexture('vehshare', 'yankton_plate_n', 'duiTxd6', 'duiTex26') -- Applies "duiTex2" from "duiTxd" to "plate01_n" from "vehshare"
Cleaned up the code to get it working as it is supposed to.
https://github.com/Scantrax3112/customplates/releases/tag/v1.0.0
https://github.com/ValenciaModifcations/CustomPlates/releases/tag/FiveM
Cleaned up the code and is working fine.
@ValenciaModifcations Having an issue with your fork..
When I go to start the resource I get the following error: Resource loading for CustomPlate failed: Could not open resource metadata file - no such file
Any idea on how to fix it and get the script going?
I'll push a new update to this fork here in a second, but that error is typically resulted to the fxmanifest(or __resource.lua) not being detected... weird
@ValenciaModifcations Having an issue with your fork..
When I go to start the resource I get the following error: Resource loading for CustomPlate failed: Could not open resource metadata file - no such file
Any idea on how to fix it and get the script going?
Just pushed the new update. This one prints out basically every step to make sure there isnt a problem on load.
Anyone who knows if it is possible to remove the color of the gta text? Doesnt look so good with the yellow text
Anyone who knows if it is possible to remove the color of the gta text? Doesnt look so good with the yellow text
This script is already... funky, for lack of a better word.
On my client I can see the 3D detailing, but on other clients they don't.... I am not sure if removing the color is possible as I believe it would be a 3D thing
The new update messed up the script