
Artyom888
Members-
Posts
28 -
Joined
-
Last visited
Everything posted by Artyom888
-
How do I see the error "sending request to server". Possible reasons: 1. No response from the database 2. No connection to the database. 3. The database is not working. Use the command "debugscript 3" for debugging and look for errors there.
-
Subject: Issue with Transparency on Replaced Vehicles When Using dl_lightmanager Problem Description: I am using the dl_lightmanager resource to create headlight effects in MTA:SA. The issue is that when the light hits replaced (modded) vehicles, their body becomes semi-transparent. Details: The issue does not occur on default GTA SA vehicles. On modded vehicles, when exposed to light, the body becomes partially transparent. I am using standard dl_lightmanager functions to create light sources. I have checked various textures and shaders, but I couldn’t identify the cause. What I've tried so far: Removing shaders using engineRemoveShaderFromWorldTexture, but it doesn’t fix the problem. Checking model textures using engineGetModelTextureNames() — all textures seem to load correctly. Adjusting light parameters (setLightAttenuation, setLightColor), but the transparency issue persists. Question: How can I fix this issue? Could it be related to how dl_lightmanager handles lighting or to the material settings in the vehicle model? Any help would be greatly appreciate https://ibb.co/x83mZzHw
-
local Rotation = {vehicle:getComponentRotation("door_lr_ok")} vehicle:setComponentRotation("minigun", unpack(Rotation)) getVehicleComponentRotation I can find out the position of door_lr_dummy, but can I find out the rotation of door_lr_ok?
-
Thanks ?
-
Спасибо за помощь ?
-
Арендую хостинг на myarena. Ошибка при обновлении сервера до версии 1.5.9. Самый интересный путь, по которому идет поиск. Это путь локального хостинга. То есть, я перенес проект с локального хостинга на онлайн хостинг. (На локалке такой проблемы нету) Поэтому путь такой же остался. Переносил исключительно файлы проекта. Может его как нибудь изменить?(На хостинге такого пути нет)
-
[22-04-14 14:20:45] ERROR: Could not load /game/mods/deathmatch/dbconmy.so - libssl.so.1.1: cannot open shared object file: No such file or directory[22-04-14 14:20:45] WARNING: Core/server/database/Database.lua:30: Bad usage @ 'dbConnect' [Could not connect] [22-04-14 14:20:45] INFO: ERROR: Database.connect: failed to connect [22-04-14 14:20:45] INFO: ERROR: Database connection failed
-
[22-04-14 14:20:45] ERROR: Could not load /game/mods/deathmatch/dbconmy.so - libssl.so.1.1: cannot open shared object file: No such file or directory[22-04-14 14:20:45] WARNING: Core/server/database/Database.lua:30: Bad usage @ 'dbConnect' [Could not connect] [22-04-14 14:20:45] INFO: ERROR: Database.connect: failed to connect [22-04-14 14:20:45] INFO: ERROR: Database connection failed
-
К сожалению не получилось(
-
Подскажите пожалуйста как мне сделать невидимую маску вокруг стикера. Чтобы видно было цвет авто? Стикеры на авто рисую через DxDrawImage
-
Please tell me. How do I make the black background on the model invisible?
-
Hi, I use this code to create a vehicle with a ped inside. When i use setVehicleEngineState that the car that I created does not turn off function start () local playerPosition = Vector3( getElementPosition( localPlayer ) ) local theVehicle = createVehicle( 401, playerPosition ) local thePed = createPed( 0, playerPosition ) warpPedIntoVehicle( thePed, theVehicle ) setVehicleEngineState(theVehicle, false) end addCommandHandler ( "create", start )
-
logging in mta with data from registration in the mybb forum
Artyom888 replied to NoviceWithManyProblems's topic in Scripting
By comparing passwords local password_player --password entered by player local password_db --password that we received from the database if md5(password_player) == password_db then outputDebugString("passwords match") else outputDebugString("Error: Passwords do not match") end -
hi, tell me how can I make a common Lua table for server and client? table = { a = {0.1, 0.2} d = {0.2, 0.3} c = {0.3, 0.4} }
-
@Avival Thanks It works! Please tell me how it works?
-
Please tell me how to remove localPlayer from the resulting table and leave only players on the server? I get a list of all players including localPlayer I would like localPlayer not to be selected in the list. for i, player in ipairs(getElementsByType("player")) do --player - localPlayer table.insert(playersList, player) end
-
Ищу помощника в доработке проекта, требуется основное это конечно знание Lua, и основы С++ С#. По всем вопросам писать в лс!
-
Yes, I use a shader on the back of the car exactly the same as you wrote me. The problem is that on the windows of the car I use the texture for uv (black) I would like to hide it and leave the stickers. (sorry for my English)
-
Hi gentlemen, I have a problem with lighting the texture, it is lighter than everyone Please tell me what the problem is I use these shaders /* Author: 50p Version: v1.0 Description: This shader allows you to mask a texture with a mask texture (black and white). */ 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 { AlphaBlendEnable = true; SrcBlend = SrcAlpha; DestBlend = InvSrcAlpha; PixelShader = compile ps_2_0 MaskTextureMain(); } }
-
Hi , guys! How to customize this panels ?
-
Hi, guys, help me. How to make a timer change the images? I've written a code but it doesn’t want to work. local screenSize = Vector2(guiGetScreenSize()) function random () if not systemUpTime then systemUpTime = getTickCount () end currentCount = getTickCount () tic = ( currentCount - systemUpTime ) outputDebugString( tic) if tic > 30000 then backgroundTexture = dxCreateTexture("assets/screen" .. tostring(math.random(1,6)) .. ".png") else backgroundTexture = dxCreateTexture("assets/screen1.png") end end setTimer( random, 35000, 0 ) local function draw( ) dxDrawImage ( 0, 0, screenSize.x, screenSize.y, backgroundTexture, angle, 0, -120 ) end addEventHandler("onClientRender", root, draw)
-
Доброго времени суток! Подскажите пожалуйста я использую функцию dxDrawImage для отображения картинки. Я хочу чтоб картинка менялась через некоторое время рандомно моно и по порядку, как это моно реализовать? Вот что я пытался написать local screenSize = Vector2(guiGetScreenSize()) function random () if not systemUpTime then systemUpTime = getTickCount () end currentCount = getTickCount () tic = ( currentCount - systemUpTime ) outputDebugString( tic) if tic > 30000 then backgroundTexture = dxCreateTexture("assets/screen" .. tostring(math.random(1,6)) .. ".png") else backgroundTexture = dxCreateTexture("assets/screen1.png") end end setTimer( random, 35000, 0 ) local function draw( ) dxDrawImage ( 0, 0, screenSize.x, screenSize.y, backgroundTexture, angle, 0, -120 ) end addEventHandler("onClientRender", root, draw)
-
Good day, please tell me! I would like to display the characteristics of the car when choosing it in a car dealership. Tell me how I can display such a characteristic as the controllability of a car based on its handling table. local tableHandling = getVehicleHandling ( vehicle ) function handling( tableHandling ) if type (tableHandling) == "table" then VehicleInfo.specs = { speed = tableHandling.maxVelocity /1000, --max speed acceleration = tableHandling.engineAcceleration /100, -- acceleration control = (tableHandling.tractionMultiplier + tableHandling.tractionLoss + tableHandling.tractionBias /10) / 5, -- handleability } else return end end So I wrote such a code, but it repents to me that it is not correct in terms of calculating the controllability of a car (not a valid formula). As a result, I need to get a value from 0.1 to 1 in order to display it on a scale in the future. Sorry for my English(