Hi everybody, This is the first paid release i made, the Animated Car Livery script. I made it a long time ago but now it’s time to make it public. The script is heavily optimized so you will not experience any type of lag or stutter. I had already left a version of this script but I flagged the script myself because I didn’t think it was complete. In this version of the script you will have the following features:
More optimized code;
Ability to modify cars directly from the game as demonstrated by the video;
Ability to whitelist who can use the commands;
Flat storage via a json db for faster performance.
But if you want to have even more security and want to block the video quality just go to the data.json and add this piece of string to the link of the video embed “&vq=hd720” or “&vq=hd1080” ecc.
@vegas91 Not possible because with this script you replace the texture that is shared between cars but i can give you the trick.
You can simply took the vanilla car, make it addon and the multiply the liveries. With this trick you can create how many liveries you want and restrict them to players!
local txd = CreateRuntimeTxd('duiTxd')
local duiObj = CreateDui('https://media.discordapp.net/attachments/865647406490320920/865647480070340618/2febfd017af4653f41ca4785d1db99e4.gif', 576, 575) -- to change gif add link and change the width and hight ( 576, 575 ) to what ever ur gif image size is
_G.duiObj = duiObj
local dui = GetDuiHandle(duiObj)
local tx = CreateRuntimeTextureFromDuiHandle(txd, 'duiTex', dui)
AddReplaceTexture('vehiclemodel', 'some texture in the YTD file example: dukes_sign_1', 'duiTxd', 'duiTex')
this does the same thing as this script this code was posted in the cfx discord 2 weeks ago