-
Posts
749 -
Joined
-
Last visited
-
Days Won
1
Posts posted by FlyingSpoon
-
-
Of course, just look for a correct guide on how to do this.
For example:
https://www.google.com/amp/s/arctype.com/blog/mysql-ssl/amp/
-
Is there a way to increase CEF Browser FPS? I remember doing it a long time ago but I cannot find the right setting. Basic animations are really choppy too, looking for a workaround.
-
When you mention, docker containers are we talking about LXC's or is it something else?
-
On 13/09/2021 at 17:12, Xenius said:
local sx, sy = guiGetScreenSize() addEventHandler("onClientRender", root, function() local interpolate = interpolateBetween(15, 0, 0, 30, 0, 0, getTickCount() / 2000, "SineCurve") dxDrawText(getIcon("fa-info").." fontawesome is working! Woah! "..getIcon("fa-smile-wink"), sx, sy, 0, 0, tocolor(255, 255, 255), 1, getFont("fontawesome", interpolate), "center", "center") end)
Nice script but it's not worth $5. It's a really simple script based on unicode. That takes a few seconds to generate. Try maybe decreasing the price or making it open source.
Regardless, good job
-
10 minutes ago, FlyingFork said:
Hi, I came across an old Post about the same topic, here is the link:
It might help you.
That won't work anymore, there's a new hashing/encrypting method implemented into 4.x as far as I remember.
-
Thanks for this!
- 1
-
Just my review so far, since I decided to take it for a test ride. The support seems to not be trained that well, lacking in communication. I asked where they rented out their servers which should be basic information any client should know, they were not willing to give it. I asked for an IP to ping, didn't receive that either. So far, seems a bit sketchy. I'll keep reviewing them.
-
YESSSSSSSSSSSSSS! The awaited gamemodeeee is back again!
-
16 minutes ago, IIYAMA said:
The same position + offset.
X + 1, Y, Z
Or
X, Y + 1, Z
It still moves with my camera
-
dxDrawMaterialLine3D( v.x, v.y, v.z, v.x + 1/9, v.y + 1/9, v.z + 0, self.material, 1/9, tocolor(v.r, v.g, v.b, 255), ?, ?, ? )
I want to make it so that, when you move around the image doesn't move. Not sure what I am meant to put at faceX, faceY, faceZ
-
-
4 hours ago, adeh001ok said:
I see people here have extraordinary potential. But I have a serious problem so I ask you to help me
Serverfunction DeleteChara() if (getElementData(theElement,"account:charselect:id")) then local dbid = getElementData(theElement,"account:charselect:id") local escapedID = exports.mysql:escape_string(dbid) local result = exports.mysql:query("SELECT * FROM characters WHERE id='" .. dbid .. "'") local fetch = exports.mysql:fetch_assoc(result) local query = exports.mysql:query("DELETE * FROM characters WHERE id='" .. dbid .. "'") if query then outputChatBox("Successfully deleted this character!", source, 0, 255, 0) refreshCharacters() else outputChatBox("ERROR!", source, 255, 0, 0) end end end addEvent("accounts:DeleteChara", true) addEventHandler("accounts:DeleteChara", getRootElement(), DeleteChara)
Clientfunction closeDelChar() destroyElement(myWindow) showCursor(true) end function DeleteChara() triggerServerEvent("accounts:DeleteChara", localPlayer) end function delChar() myWindow = guiCreateWindow ( 0.3, 0.3, 0.3, 0.2, "Information", true ) -- Button Boss bClose = guiCreateButton(0.550, 0.5, 0.4, 0.2, "No", true, myWindow) addEventHandler("onClientGUIClick", bClose, closeDelChar) bAccept = guiCreateButton(0.050, 0.5, 0.4, 0.2, "Yes", true, myWindow) addEventHandler("onClientGUIClick", bAccept, DeleteChara) -- Text lText = guiCreateLabel(0.025, 0.2, 1.0, 0.3, "Are You Sure?To Delete This Character.", true, myWindow) guiSetFont(lText, "default-bold-small") guiLabelSetHorizontalAlign(lText, "center", true) end addEvent( "delChar", true) addEventHandler( "delChar", localPlayer, delChar)
Since you're using leaked/stolen scripts, I don't think anyone will help you. And as you can see, the debug string is saying that you're trying to compare a number with a nil value.
-
12 hours ago, JustinMTA said:
There's an example in the quote above in my last post where that guy asks what a render target is, for your situation you can just change the render target.
Nvm, thisdp gave me an easier solution
- 1
-
5 hours ago, JustinMTA said:
You could set render target as the objects texture that you're trying to color, and render the color on with ease.
https://wiki.multitheftauto.com/wiki/DxCreateRenderTarget
https://wiki.multitheftauto.com/wiki/DxSetRenderTargetDo you have an example?
-
Using 50p's Masked Texture creator, I was trying to mess with it a little and was wondering if you could apply solid colors over the textures? I've given it a try below, but it doesn't work so therefore it's wrong. Can anyone help out?
Lua File
float red; float green; float blue; float alpha; texture ScreenTexture; sampler implicitInputTexture = sampler_state { Texture = <ScreenTexture>; }; texture MaskTexture; sampler implicitMaskTexture = sampler_state { Texture = <MaskTexture>; }; float4 MaskTextureMain( float2 uv : TEXCOORD0 ) : COLOR0 { float4 sampledTexture = tex2D( implicitInputTexture, uv ); float4 maskSampled = tex2D( implicitMaskTexture, uv ); sampledTexture.a = (maskSampled.r + maskSampled.g + maskSampled.b) / 3.0f; return sampledTexture; } technique Technique1 { pass Pass1 { MaterialAmbient = float4(red, green, blue, alpha); AlphaBlendEnable = true; SrcBlend = SrcAlpha; DestBlend = InvSrcAlpha; PixelShader = compile ps_2_0 MaskTextureMain(); } }
Shader
CMasker = { }; CMasker.__index = CMasker; function CMasker: create( texture, mask ) local cShader = { shader = dxCreateShader( "/files/50masktexture.fx" ), texture = dxCreateTexture( texture, "argb", true, "clamp" ), maskTexture = dxCreateTexture( mask, "argb", true, "clamp" ), }; dxSetShaderValue( cShader.shader, "ScreenTexture", cShader.texture ); dxSetShaderValue( cShader.shader, "MaskTexture", cShader.maskTexture ); self.__index = self; setmetatable( cShader, self ); return cShader; end function CMasker: draw( x, y, width, height ) if self.shader then dxDrawImage( x, y, width, height, self.shader ); end end function CMasker: color ( r, g, b ) if self.shader then dxSetShaderValue ( self.shader, 'red', r/255 ) dxSetShaderValue ( self.shader, 'green', g/255 ) dxSetShaderValue ( self.shader, 'blue', b/255 ) dxSetShaderValue ( self.shader, 'alpha', 255/255 ) end end function CMasker: destroy( ) if self.shader then destroyElement( self.shader ); end if self.texture then destroyElement( self.texture ); end if self.maskTexture then destroyElement( self.maskTexture ); end end
-
Just now, thisdp said:
the rough edges is adjustable, you can make it smooth just by changing the settings
I've tried it, you can still see the imperfection. Plus I think it might be better to use images since there's less rendering to do.
-
7 hours ago, thisdp said:
idk whether this could help you or not.
I tried DGS, it's still not as smooth as I want it to be, you can see the rough edges. It's a good try though, thanks.
14 hours ago, DNL291 said:Using border icon + dxDrawImageSection:
https://www.dropbox.com/s/btuaj3u8ovszqd1/rounded_rectangle.zip?dl=0
Perfect that's what I needed.
-
Just now, IIYAMA said:
Hmm, you could try to generate it with a browser.
> browser
https://wiki.multitheftauto.com/wiki/CreateBrowser
> html + css
<section style="width:300px;height:100;background-color:black;border-radius: 25px;"></section>
> get
https://wiki.multitheftauto.com/wiki/DxGetTexturePixels
https://wiki.multitheftauto.com/wiki/DxGetPixelsSize
> set
https://wiki.multitheftauto.com/wiki/DxCreateTexture
https://wiki.multitheftauto.com/wiki/DxSetTexturePixels
Yeah I know its possible with CEF, but I want to avoid that. Trying to do it through Dx, I've seen people do something with dxDrawImageSection, any idea on that?
-
Just now, IIYAMA said:
Already did, problem with that is that it's not really smooth on the edges, you see it breaking. What do you recommend?
- 1
-
function drawRoundedRectangle ( x, y, w, h ) -- draw image end
Curious if I'm able to make a function like this, and resize the image without blurring it out. Resizing both the width and height.
For example, using this image -
-
Hi there,
I'm looking for a designer who can help me with my dxLib, struggling to come up with designs at the moment, and I'm willing to pay for the design. Also need a logo with an icon. If you are interested, please make sure you have some previous work to show. We can discuss more about this through Discord.
Contact: ℓιgнт#6633
-
3 minutes ago, Dimos7 said:
You can't use engine load at least that i know for sure
Any ideas on what I can do?
-
2 minutes ago, Dimos7 said:
You need to replace them aswell
You can only replace CJ's face as a whole, yeah you can add a texture to make it look a little different but the outline is still there. Even if I make a different face, the jawline, face outline still resembles CJ. That's what I want to change basically.
-
2 minutes ago, Dimos7 said:
For change cj head you need
dxCreateTexture dxCreateShader dxSetShaderValue engineApplyShaderToWorldTexture
Yeah I already tried shaders, but CJ's face outline still stays there, like his big chin, jaw line, ears
Inferiority of the Highest Ground Point
in Scripting
Posted
Would this work for your approach?
https://wiki.multitheftauto.com/wiki/TestLineAgainstWater