masrpnathan-g / customplates Goto Github PK
View Code? Open in Web Editor NEWEdit Native Grand Theft Auto 5 License Plate Imagery With This Script!
Edit Native Grand Theft Auto 5 License Plate Imagery With This Script!
Hello! Love this resource.
I'm having an issue with my custom texture glitching. I read where you said this may happen if not configured correctly, however all my license plate textures are .pngs with the proper pixel sizes. Is there something I am missing? Thanks
Thanks for the script, very handy
We were having some issues with using the original size resolution (1200x700) images, getting a crash error blue-moon-sweet
, after some back and forth testing I was able to isolate it to the plate replacements.
I lowered the resolution down to match the original plates in game (256x128) and also changed the CreateDui
, no issues now with the streaming and the plates still look great in game, wondering if this should be updated on the script too?
Picture with the smaller resolution:
i was tinkering with this and came up with a way to replace all the plates in one rescource
--- IMAGE CONFIG HERE ---
imageUrl1 = "https://i.imgur.com/NmnAbCE.png" -- Paste your image URL here (doesn't have to be from imgur)
imageUrl1n = "https://i.imgur.com/9yBqgfV.png" -- this URL doesn't need to be edited used for bumpmap
imageUrl2 = "https://i.imgur.com/fdYKraW.png" -- Paste your image URL here (doesn't have to be from imgur)
imageUrl2n = "https://i.imgur.com/9yBqgfV.png" -- this URL doesn't need to be edited used for bumpmap
imageUrl3 = "https://i.imgur.com/hoKpfsF.png" -- Paste your image URL here (doesn't have to be from imgur)
imageUrl3n = "https://i.imgur.com/9yBqgfV.png" -- this URL doesn't need to be edited used for bumpmap
imageUrl4 = "https://i.imgur.com/RNwHuWr.png" -- Paste your image URL here (doesn't have to be from imgur)
imageUrl4n = "https://i.imgur.com/9yBqgfV.png" -- this URL doesn't need to be edited used for bumpmap
imageUrl5 = "https://i.imgur.com/kdLNlJQ.png" -- Paste your image URL here (doesn't have to be from imgur)
imageUrl5n = "https://i.imgur.com/9yBqgfV.png" -- this URL doesn't need to be edited used for bumpmap
imageUrl6 = "https://i.imgur.com/RNwHuWr.png" -- Paste your image URL here (doesn't have to be from imgur)
imageUrl6n = "https://i.imgur.com/9yBqgfV.png" -- this URL doesn't need to be edited used for bumpmap
-- The actual script --
local textureDic = CreateRuntimeTxd('duiTxd') -- 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, "duiTex", handle) -- Creates the texture "duiTex" in the "duiTxd" dictionary
AddReplaceTexture('vehshare', 'plate01', 'duiTxd', 'duiTex') -- 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, "duiTex2", handle) -- Creates the texture "duiTex" in the "duiTxd" dictionary
AddReplaceTexture('vehshare', 'plate01_n', 'duiTxd', 'duiTex2') -- Applies "duiTex2" from "duiTxd" to "plate01_n" from "vehshare"
-- The actual script --
local textureDic = CreateRuntimeTxd('duiTxd') -- 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, "duiTex", handle) -- Creates the texture "duiTex" in the "duiTxd" dictionary
AddReplaceTexture('vehshare', 'plate02', 'duiTxd', 'duiTex') -- Applies "duiTex" from "duiTxd" to "plate02" 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, "duiTex2", handle) -- Creates the texture "duiTex" in the "duiTxd" dictionary
AddReplaceTexture('vehshare', 'plate02_n', 'duiTxd', 'duiTex2') -- Applies "duiTex2" from "duiTxd" to "plate02_n" from "vehshare"
-- The actual script --
local textureDic = CreateRuntimeTxd('duiTxd') -- 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, "duiTex", handle) -- Creates the texture "duiTex" in the "duiTxd" dictionary
AddReplaceTexture('vehshare', 'plate03', 'duiTxd', 'duiTex') -- Applies "duiTex" from "duiTxd" to "plate03" 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, "duiTex2", handle) -- Creates the texture "duiTex" in the "duiTxd" dictionary
AddReplaceTexture('vehshare', 'plate03_n', 'duiTxd', 'duiTex2') -- Applies "duiTex2" from "duiTxd" to "plate03_n" from "vehshare"
-- The actual script --
local textureDic = CreateRuntimeTxd('duiTxd') -- 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, "duiTex", handle) -- Creates the texture "duiTex" in the "duiTxd" dictionary
AddReplaceTexture('vehshare', 'plate04', 'duiTxd', 'duiTex') -- Applies "duiTex" from "duiTxd" to "plate04" 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, "duiTex2", handle) -- Creates the texture "duiTex" in the "duiTxd" dictionary
AddReplaceTexture('vehshare', 'plate04_n', 'duiTxd', 'duiTex2') -- Applies "duiTex2" from "duiTxd" to "plate04_n" from "vehshare"
-- The actual script --
local textureDic = CreateRuntimeTxd('duiTxd') -- 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, "duiTex", handle) -- Creates the texture "duiTex" in the "duiTxd" dictionary
AddReplaceTexture('vehshare', 'plate05', 'duiTxd', 'duiTex') -- Applies "duiTex" from "duiTxd" to "plate05" 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, "duiTex2", handle) -- Creates the texture "duiTex" in the "duiTxd" dictionary
AddReplaceTexture('vehshare', 'plate05_n', 'duiTxd', 'duiTex2') -- Applies "duiTex2" from "duiTxd" to "plate05_n" from "vehshare"
-- The actual script --
local textureDic = CreateRuntimeTxd('duiTxd') -- Create custom texture dictionary only needs to be done once
local object = CreateDui(imageUrl6, 540, 300) -- Load image into object
local handle = GetDuiHandle(object) -- Gets DUI handle from object
CreateRuntimeTextureFromDuiHandle(textureDic, "duiTex", handle) -- Creates the texture "duiTex" in the "duiTxd" dictionary
AddReplaceTexture('vehshare', 'yankton_plate', 'duiTxd', 'duiTex') -- Applies "duiTex" from "duiTxd" to "yankton_plate" from "vehshare"
local object = CreateDui(imageUrl6n, 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, "duiTex2", handle) -- Creates the texture "duiTex" in the "duiTxd" dictionary
AddReplaceTexture('vehshare', 'yankton_plate_n', 'duiTxd', 'duiTex2') -- Applies "duiTex2" from "duiTxd" to "yankton_plate_n" from "vehshare"
The new update messed up the script
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.