scratcher911
Members-
Posts
105 -
Joined
-
Last visited
Everything posted by scratcher911
-
like it I have 59000 milliseconds it will show like 00:59:00. EDIT: Thanks solid!
-
use dxDrawText onClientRender
-
Can somebody post that function witch transfer milliseconds to format like this 00:00:00 I saw it somewhere on forum but I can't find it. Thanks, Scratcher
-
Hi. I am using getRealTime function. So if the time is 4 o'clock it shows 4. I wanna that it outputs 04 instead of 4. How? Greets: ScratcheR
-
Can you update link please ?
-
aName = string.gsub(name or something in string here,"_"," ")
-
function crtwpn() weapon = createWeapon ( "M4", 25.5, 1523.0930908203, 12.705202865601 ) end addCommandHandler ( "weapon", crtwpn) and be sure that is client side.
-
I prefer PRG because most of Roleplay servers are the same. I mean that the most scripts are stolen Valhalla scripts or just modified like Shodown or TwinGold. I realy didn't see any Roleplay server that is not Valhalla.
-
thanks. But the same problem ...
-
what do you mean ?
-
I have problem with tables. When I make marker only one marker works. all should work but IDK why it doesn't. Here's my code; local jobs = { {"Police Officer",1547.06470, -1681.80249, 13.55873, 0, 100, 255}; {"Paramedic",1178.41431, -1328.58850, 14.11890, 0, 255, 255}; } for _, job in ipairs (jobs) do jobMarker = createMarker(job[2], job[3], job[4], "cylinder", 1.5, job[5], job[6], job[7]) end addEventHandler("onClientMarkerHit", jobMarker, function() --CODE HERE end )
-
oh. Thanks didn't notice that.
-
addEventHandler("onClientMarkerHit", jobMarker, function() local red, green, blue = getMarkerColor( source ) local name = getElementData(source, "JobName") local info = jobsInfo[getElementData(source, "JobName")][1] local skins = jobsInfo[getElementData(source, "JobName")][3] createJobWindow(name, info, RGBToHEX( red, green, blue ), skins) end function RGBToHex(red, green, blue, alpha) if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255) or (alpha and (alpha < 0 or alpha > 255))) then return nil end if(alpha) then return string.format("#%.2X%.2X%.2X%.2X", red,green,blue,alpha) else return string.format("#%.2X%.2X%.2X", red,green,blue) end end why it shows RGBToHEX a nil value ?
-
do you have element data for group or what ?
-
I don't understand what you mean. SELECT means you can only get data not insert or something like this. It won't change anything in phpmyadmin.
-
I think that is originally in resources resource called traffic
-
use playSound or you can use playSoundFrontEnd for the sound from GTA
-
Post your log here.
-
try updating it to latest versions http://code.google.com/p/mtasa-resources/downloads/list?q=label:Latest
-
maybe because you don't have maps ?
-
addCommandHandler("Lift", function( thePlayer, Command ) -- You forgot function here local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) -- get his account name if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then liftWarpPlayer(thePlayer) else outputChatBox ( "#FF0000Permission: You Don't have Permission to use This Command", getRootElement(), 255, 255, 255, true ) end end )
-
There isn't anything wrong with the code. Are you sure that is client side ? Show me your meta.xml