
karlis
Members-
Posts
1,314 -
Joined
-
Last visited
Everything posted by karlis
-
function isNumeric(text) if type(text) == "string" then text = tostring(text) end return text and true or false end 2mistakes.
-
function isNumeric(text) if type(text)~="string" and type(text)~="number" then return false end return tonumber(text) and true or false end
-
correction function isNumeric(text) return tonumber(text) and true or false end
-
i'm thinking of far more advanced settings system. for now use the client.lua, first 50lines are settings. i'll contain component disabling there tomorrow hopefully.
-
thanks, it just appeared in one of new help topics also
-
thanks, that would be great most important to test, as i did only short thests on them: wanted level hud serversided commands for the circular radar areas
-
you mean my computer fan? then yes, ive even got a extra fan under my laptop. i noticed it also does this alot when entering servers and spawning in some areas of the map. When ever its about to alt tab i notice that mta pauses for a moment then alt tabs... Oh and sometimes it even closes the whole mta also ive noticed that when you first open up admin panel on your server when you login the game pauses for about 3 seconds then it opens up admin panel, is this normal or should it open right away? this is a long delay, but it might be caused by a slow hardware
-
1.0 RELEASED! check 1st post for info. NOTE: to get in community 2mb limit i had to make the image much lower quality.
-
ok so basically code is done for 1st release, i just need adjust few images(actually more then few lol) and write the round radar area functions serverside. expect release tomorrow or in Tuesday. EDIT:nvm, watch post under it. and I didn't edit the post so others can see its released
-
nametags.lua -.- just replace the code with your one PS: recommended to rename race to a bit different name, so players don't have to download the resource each time they swap your and other race server.
-
is heating fine?
-
oh ok i fail, but still as you say, he can change it. and can you find the complete function with align etc?i couldn't find it, damn spammed search.
-
you will have to replace usual dxDrawText and use function dxDrawColorText(str, ax, ay, bx, by, color, scale, font) local pat = "(.-)#(%x%x%x%x%x%x)" local s, e, cap, col = str:find(pat, 1) local last = 1 while s do if cap == "" and col then color = tocolor(tonumber("0x"..col:sub(1, 2)), tonumber("0x"..col:sub(3, 4)), tonumber("0x"..col:sub(5, 6)), 255) end if s ~= 1 or cap ~= "" then local w = dxGetTextWidth(cap, scale, font) dxDrawText(cap, ax+100, ay, ax + w, by, color, scale, font, "center", "bottom", false, false, false ) ax = ax + w color = tocolor(tonumber("0x"..col:sub(1, 2)), tonumber("0x"..col:sub(3, 4)), tonumber("0x"..col:sub(5, 6)), 255) end last = e + 1 s, e, cap, col = str:find(pat, last) end if last <= #str then cap = str:sub(last) local w = dxGetTextWidth(cap, scale, font) dxDrawText(cap, ax+100, ay, ax + w, by, color, scale, font, "center", "bottom", false, false, false ) end end
-
i can confirm that similar issues did rarely happen with build-in ATI display adapters aswell(series x200).
-
try downloading lastest resurces
-
just don't draw it to show something you have to draw it every frame anyway.
-
only with colored beam checkpoints
-
oh sorry, then even simplier:use relative positions
-
sx,sy=guiGetScreenSize() relativeX,relativeY,relativeW,relativeH= 0.5,0.5,0.1,0.1--float between 0 and 1, where 0 is left/top, and 1is right/bottom.same applies to sizes(W,H). addEventHandler("onClientRender",getRootElement(),function() dxDrawImage(relativeX*sx,relativeY*sy,relativeW*sx,relativeH*sy,"randompic.png") end)
-
some simple maths can be used, is it really that hard? show your problem exactly.
-
that's crappy object streamer w/o automatic reload with crappy samp limitation of 400(i think) objects that can be loaded at same time.
-
Never had it checked unfortunately, tried it actually lol I do, even with it tho it just slowly down the movement speed, doesn't seem to change the amount of space it moves through. im very sure checking/uncheking should work, worked for me.
-
read 1 post above. and btw you can do this: if hitElement and getElementType(hitElement) == "player" then ... end to save space