Anyone know how to fix, I bought a vehicle [TurismoR] And I upgraded it in LSC and then stored it then took it out and it wasnt customized anymore D: please help
Thats the normal code in the clients/basic_garages.lua:
- if colors then
- SetVehicleColours(nveh,tonumber(colors[0]), tonumber(colors[1]))
- end
- if extracolors then
- SetVehicleExtraColours(nveh,tonumber(extracolors[0]), tonumber(extracolors[1]))
- end
and this should be the code for getting police cars normal:
+ if vtype ~= "police" then
+ if colors then
+ SetVehicleColours(nveh,tonumber(colors[0]), tonumber(colors[1]))
+ end
+ if extracolors then
+ SetVehicleExtraColours(nveh,tonumber(extracolors[0]), tonumber(extracolors[1]))
+ end
+ end
This doesnt do anything correct for me as none coder almost
there should be if vehicletype police then set colors to example 111(white) and secondary 0 (black)
elseif and here the normal code to get the color from the database.
The codeabove askes about an police car and then works again as normal or?
I f you want to debug the permission for the garage , you will need to go in the folder module/ basic garage and remplace this ( line : 320)
if user_id ~= nil and (gcfg.permission == nil or vRP.hasPermission(user_id,gcfg.permission)) then
with
if user_id ~= nil and vRP.hasPermissions(user_id,gcfg.permissions or {}) then
Iβd be happy to integrate the best parts of this release into vRP++, but Iβve already got myself a headache reading into vRP code and struggling to make it work the way I want it to. Iβll keep your request in mind, but itβs not one of the top priorities ATM.
It would be much appreciated and generally supercool if you or @Psychorustle or anyone sent some code as pull requests on GitHub.
u can download and input to u vrp++
only u need take of my vrp is
all file in vrp/cfg
take file paycheck.lua in vrp/client and vrp/modules
all other files can be replace by u vrp++ @ENDrain