
ma2med
Members-
Posts
178 -
Joined
-
Last visited
Everything posted by ma2med
-
they maybe removed "user.console" in ACL
-
Very good work
-
[SHOW] Nouvelle physique pour les véhicules
ma2med replied to Valentin3526's topic in French / Français
Pas mal -
Bon travail
-
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.
-
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
-
good job
-
this is clientside or serverside?
-
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
-
Good to see it's not abandoned
-
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
-
warpPedIntoVehicle is serverside
-
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
-
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
-
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)
-
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
-
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