-
Posts
46 -
Joined
-
Last visited
Posts posted by MightyAnimals
-
-
It is possible to replace sa standard paintjobs with custom ones
-
That did work!
I got another problem
table.insert(content, {" - " ..(getElementData(source, "carname[model]") or getVehicleNameFromModel( getElementModel( source ) ))} )
I've tried some options neither did they work. I actually want the custom carname to show instead of the mta model
-
I'll surely give it a try.
-
Don't understand him wrong though, We're all here to help eachother out. But, eventually you have to do it yourself.
-
Yea.. That'd explain it.
-
-
Take the basis from the wiki. https://wiki.multitheftauto.com/
-
But so it is useless to me .. I need it in admin_ban or Ban Details
If it was useless, MrTasty wouldn't even post the lua codes
-
bantime = getRealTime(getBanTime(theBan)) local day = bantime.day local month = bantime.month+1 local year = bantime.year+1900 local hour = bantime.hour local minute = bantime.minute local second = bantime.second dateformatted = string.format(%.2d/%.2d/%.4d %.2d:%.2d:%.2d, day, month, year, hour, minute, second)
Gives a formatted date like this:
01/01/0001 00:00:00
That's what I ment earlier when I asked if you scripted the date sequence Sendy.
Seems that you didn't do that.
-
You don't have to.. Just look for the command.refreshall to the right it says, access="true"<>/right> or access="false"<>/right>
See these?
Means it's disabled. Putting it on true makes sure you can start and stop resources by just typing: /start resourcename /stop resourcename
Just look for these
and put them on true if the ACL group needs it, if not just leave it on false.
Problem probably solved. Case Closed.
-
That didn't work though.
Still thanks for taking the effort.
Then your problem is somewhere else.
Perhaps, yes, might have to make some clientside script aswell.
-
That didn't work though.
Still thanks for taking the effort.
-
Heh, the only thing I wanted was that it actually showed the custom car
> Example: This 1993 Sabaru Impreza Belongs to Brian O'Donnald.
Since I forgot what I had to do, I made this topic..
-
Perhaps, some more explanation? I didn't quite get it the way you've just told me.
-
-
Have you even scripted the automatic date & time ?
-
That didn't work though..
Still, thanks for trying.
That's what i've got to get the new name.
function getVehicleCustomNameAndIDFromModel(model) local exists = 0 for k,v in pairs(carname) do if k == model then exists = 1 end end if exists == 1 then local newvehnameid = math.random(1,#carname[model]) return {carname[model][newvehnameid], newvehnameid} else return {getVehicleNameFromModel(model), 1} end end
-
Neither did that work..
Still, I appriciate the help Jajcasz.
It's a roleplay script . forgot to say.
-
Well, in the begin of the script i've got
local carname = { }
carname[506] = {"Austin Martin Z12 Zagato MD10"}
carname[560] = {"1993 Subaru Impreza"}
when I do
outputChatBox("(( This " .. tostring(carname) .. " belongs to " .. ownerName .. ". ))", thePlayer, 255, 195, 14)
it gives me those variables.
in the spoiler it says vehnameid which is the vehicles.sql. shows nil when I enter the car.
-
Deleted
Custom Paintjobs & Mods
in Scripting
Posted
I'll give you an example of what I've got to do custom paintjobs though.
Client sided -
You see elegy1body256? Ofcourse you do, that is the name of the first paintjob.
You can find those Id's in the .txd files, use txdworkshop to find em. elegy.txd or savanna.txd etc.
texture.fx: