Dimos7

Members
  • Content count

    1,265
  • Joined

  • Last visited

Community Reputation

59 Popular

4 Followers

About Dimos7

  • Rank
    Lil' G
  • Birthday 09/02/1994

Details

  • Location
    Greece

Recent Profile Visitors

2,383 profile views
  1. Dimos7

    Set a shaderValue for one object

    idk mate
  2. Dimos7

    Set a shaderValue for one object

    local o = createObject( 2121, 1418.1678466797,-1595.0837402344,13.366353988647 ) shader1 = dxCreateShader("texReplace.fx", 0, 0 , false, "object") red = dxCreateTexture("red.png") dxSetShaderValue( shader1, "gTexture", red ) engineApplyShaderToWorldTexture( shader1, "gTexture", o ) local o1 = createObject( 2121, 1411.8753662109,-1591.5054931641,13.360206604004 ) shader2 = dxCreateShader("texReplace.fx", 0, ,0, false, "object") blue = dxCreateTexture("blue.png") dxSetShaderValue( shader2, "gTexture",blue) engineApplyShaderToWorldTexture( shader2, "gTexture", o1 )
  3. Dimos7

    [HELP] Hud script

    toggleControl(_, "radar", false)
  4. Dimos7

    LUA Resolution Problem

    local sw, sh =guiGetScreenSize() local sx, sy = sw/1920, sh/1080 dxDrawRectangle(sx*0.008,sy*0.957,length + sx*55,sy*0.030, tocolor ( 0, 266, 0, 250 ) ) That wasn't my code
  5. Dimos7

    LUA Resolution Problem

    @Veo did you try my code?
  6. Dimos7

    LUA Resolution Problem

    local sw, sh =guiGetScreenSize() local sx, sy = sw/1920, sh/1080 dxDrawRectangle(sx*0.008,sy*0.957,length + sx*55,sy*0.030, tocolor ( 0, 266, 0, 250 ) )
  7. Dimos7

    [HELP] Take Money And Interior

    function enter (thePlayer) if (getPlayerMoney(thePlayer)>= 100) then setElementPosition (thePlayer, 834.66796875,7.431640625,1004.1870117188) setElementInterior(thePlayer, 3) takePlayerMoney(thePlayer, 100) else outputChatBox("#ff0000You Dont Have Enough Money!",thePlayer,255,255,255,true) end end addEventHandler("onMarkerHit",markerJoin,enter)
  8. Dimos7

    [HELP] Car lights issue

    If you want only driver trun on/off the Light use this and check if seat is 0 which is driver getPedOccupiedVehicleSeat
  9. I mean we need info about server and how to contact with you
  10. Dimos7

    [HELP] Take Money And Interior

    The problem is you put position and interior at benging put it when take the player money
  11. Dimos7

    [HELP] Car lights issue

    function carToggleLights(player) if isPedInVehicle(player) then local veh = getPedOccupiedVehicle(player) if getVehicleOverrideLights(veh) ~= 2 then setVehicleOverrideLights(veh, 2) else setVehicleOverrideLights(veh, 1) end end end addCommandHandler("carlights", carToggleLights)
  12. Dimos7

    cancelEvent doesn't work with onPlayerChatEvent

    --This function is executed when a player joins, it sets the player's name-tag color to a random color. local function playerJoin() local red, green, blue = math.random (50, 255), math.random (50, 255), math.random (50, 255) setPlayerNametagColor(source, red, green, blue) end addEventHandler ("onPlayerJoin", root, playerJoin) --This function is executed when a player says something in chat, it outputs the player's message, with their nick colored to match their name tag color. local function playerChat(message, messageType) cancelEvent () if messageType == 0 then --Global (main) chat local red, green, blue = getPlayerNametagColor(source) outputChatBox(getPlayerName(source)..": #FFFFFF"..message, root, red, green, blue, true ) outputServerLog("CHAT: "..getPlayerName(source)..": "..message)--NOTE: Beacuse we cancelled the onPlayerChat event, we need to log chat manually. end end addEventHandler("onPlayerChat", root, playerChat)
  13. Dimos7

    engineImportTXD

    I think no for change it you need dxCreateShader dxCreateTexture dxSetShaderValue engineApplyShaderToWorldTexture
  14. Dimos7

    MTA Server MySQL problem ZeroMTA

    post the code here
  15. Any information about it?