Jump to content

ma2med

Members
  • Posts

    178
  • Joined

  • Last visited

Everything posted by ma2med

  1. Yes, this is what I wanted to do Thanks for the answer but I don't know where to put it, I tried to set Tex0 value to 0 but it's not working.
  2. Hello, I have this shader script : texture Tex0; float red; float green; float blue; float alpha; technique hello { pass P0 { Texture[0] = Tex0; MaterialAmbient = float4(red, green, blue, alpha); } } When I put color values and texture it works but if I put only colors values it's making it completely black or white. -- Working example dxSetShaderValue(shader, 'Tex0', texture) dxSetShaderValue(shader, 'red', r) dxSetShaderValue(shader, 'green', g) dxSetShaderValue(shader, 'blue', b) dxSetShaderValue(shader, 'alpha', a) engineApplyShaderToWorldTexture(shader, 'texture', element) -- Not working example dxSetShaderValue(shader, 'Tex0', nil) dxSetShaderValue(shader, 'red', r) dxSetShaderValue(shader, 'green', g) dxSetShaderValue(shader, 'blue', b) dxSetShaderValue(shader, 'alpha', a) engineApplyShaderToWorldTexture(shader, 'texture', element) Please help me with this issue
  3. ma2med

    convert?

    Yes it's possible with coleditor2 . if you don't know how to use, send me the dff and txd I will convert for you.
  4. local gate1 = createObject(2930, 1575.2001953125, -1634.7001953125, -87.699996948242, 0,0,0) setElementInterior (gate1, 6) function open(thePlayer) local team = getTeamName(getPlayerTeam(thePlayer)) if (team == "#000000Psycho Ma#990000ns Gang") then moveObject(gate1, 3000, 1575.2, -1636.1999511719, -87.699996948242, 0,0,0) end end addCommandHandler("gate1", open) function close(thePlayer) local team = getTeamName(getPlayerTeam(thePlayer)) if (team == "#000000Psycho Ma#990000ns Gang") then moveObject(cell8, 3000, 1575.2001953125, -1634.7001953125, -87.699996948242, 0,0,0) end
  5. Good to see it's not abandoned
  6. Delete https://community.multitheftauto.com/in ... ls&id=9383 https://community.multitheftauto.com/in ... ls&id=9427 https://community.multitheftauto.com/in ... ls&id=9412 DONE
  7. warpPedIntoVehicle is serverside
  8. You draw circle with rectangle? If yes, try it: function isCursorHoverRadius(x, y, w, h, r) -- x, y, width, height, radius if not isCursorShowing() then return end local cx, cy = getCursorPosition() local distance = getDistanceBetweenPoints2D(cx, cy, x+(w/2), y+(h/2)) if distance <= r then return true end return false end
  9. function isCursorHoverRadius(x, y, r) if not isCursorShowing() then return end local cx, cy = getCursorPosition() local distance = getDistanceBetweenPoints2D(cx, cy, x, y) if distance <= r then return true end return false end
  10. GUIEditor.button[2] = guiCreateButton(10, 147, 77, 34, "Pistol\n300$:1 LVL", false, GUIEditor.window[1]) addEventHandler ("onResourceStart", getRootElement(), function() guiSetVisible ( GUIEditor.window[1] , false) showCursor ( false ) guiSetEnabled ( GUIEditor.button[2],false ) end)
  11. ma2med

    Help?

    wepGridlist = guiCreateGridList(20, 27, 335, 177, false, window) local idCol = guiGridListAddColumn(wepGridlist, "ID", 0.2) local nameCol = guiGridListAddColumn(wepGridlist, "Name", 0.4) local ammoCol = guiGridListAddColumn(wepGridlist, "Ammo", 0.3) for i=0, 12 do local playerWeapon = getPedWeapon(getLocalPlayer(), i) if (playerWeapon) and ((playerWeapon-i) >= 0) then local id, name, ammo = playerWeapon, getWeaponNameFromID(playerWeapon), getPedTotalAmmo(getLocalPlayer(), i) local row = guiGridListAddRow(wepGridlist) guiGridListSetItemText(wepGridlist, row, idCol, id, false, false) guiGridListSetItemText(wepGridlist, row, nameCol, name, false, false) guiGridListSetItemText(wepGridlist, row, ammoCol, ammo, false, false) end end
  12. ma2med

    Help?

    wepGridlist = guiCreateGridList(20, 27, 335, 177, false, window) local idCol = guiGridListAddColumn(wepGridlist, "ID", 0.2) local nameCol = guiGridListAddColumn(wepGridlist, "Name", 0.4) local ammoCol = guiGridListAddColumn(wepGridlist, "Ammo", 0.3) for i=0, 12 do local playerWeapon = getPedWeapon(getLocalPlayer(), i) if (playerWeapon) and ((playerWeapon-i) >= 0) then local id, name, ammo = playerWeapon, getWeaponNameFromID(playerWeapon), getPedTotalAmmo(getLocalPlayer(), i) local row = guiGridListAddRow(wepGridlist) guiGridListSetItemText(wepGridlist, row, idCol, id, false, false) guiGridListSetItemText(wepGridlist, row, nameCol, name, false, false) guiGridListSetItemText(wepGridlist, row, ammoCol, ammo, false, false) end end
×
×
  • Create New...