Jump to content

Artyom888

Members
  • Content Count

    16
  • Joined

  • Last visited

Community Reputation

4 Neutral

About Artyom888

  • Rank
    Square
  • Birthday 01/01/1970

Details

  • Gang
    Russian

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. 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 )
  2. 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
  3. 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} }
  4. @Avival Thanks It works! Please tell me how it works?
  5. 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
  6. Ищу помощника в доработке проекта, требуется основное это конечно знание Lua, и основы С++ С#. По всем вопросам писать в лс!
  7. 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)
  8. 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 : TEX
  9. Hi , guys! How to customize this panels ?
  10. 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
  11. Доброго времени суток! Подскажите пожалуйста я использую функцию 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
  12. 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.tra
  13. Доброго времени суток подскажите пожалуйста! Я хотел бы в автосалоне отображать характеристики автомобиля при выборе его. Подскажите как я могу отобразить такую характеристику как управляемость авто исходя из его handling таблицы. local tableHandling = getVehicleHandling ( vehicle ) function handling( tableHandling ) if type (tableHandling) == "table" then VehicleInfo.specs = { speed = tableHandling.maxVelocity /1000, --максимальная скорость acceleration = tableHandling.engineAcceleration /100, -- ускорение control = (tableHandling.tractionMultiplier +
  14. АЛГОРИТМ НАСТРОЙКИ 1. Любая настройка начинается с технических параметров и характеристик модели. Необходимо выяснить: снаряженную массу модели, мощность и тип двигателя, тип привода, относительную развесовку по осям (примерно) максимальную скорость тип тормозной системы относительную жесткость и тип подвески 2. Забивка неизменяемых параметров (исходя из технических характеристик): Mass, TurnMass, Drag, CenterMass Z, Deceleration, Deceleration Bias, Abs, Max Velocity, Drive Type, Engine Type, High Speed Damping, Front and Rear Bias, Collision Dam
×
×
  • Create New...