Jump to content

salh

Members
  • Posts

    206
  • Joined

  • Last visited

2 Followers

Details

  • Gang
    #Saudi Arabia

Recent Profile Visitors

1,573 profile views

salh's Achievements

Chump

Chump (17/54)

27

Reputation

  1. setPedStat(player, 77, *he want here number* ) delate ak47 Weapon skills: Note: see Weapon skill levels for the values that advance weapon skills. 69: WEAPONTYPE_PISTOL_SKILL 70: WEAPONTYPE_PISTOL_SILENCED_SKILL 71: WEAPONTYPE_DESERT_EAGLE_SKILL 72: WEAPONTYPE_SHOTGUN_SKILL 73: WEAPONTYPE_SAWNOFF_SHOTGUN_SKILL 74: WEAPONTYPE_SPAS12_SHOTGUN_SKILL 75: WEAPONTYPE_MICRO_UZI_SKILL 76: WEAPONTYPE_MP5_SKILL 77: WEAPONTYPE_AK47_SKILL 78: WEAPONTYPE_M4_SKILL 79: WEAPONTYPE_SNIPERRIFLE_SKILL 80: SEX_APPEAL_CLOTHES 81: GAMBLING and put number 77
  2. why you export the function you can just function isPlayerInGroup(player, groupId) if isElement(player) and groupId then groupId = tonumber(groupId) if groupId and availableGroups[groupId] then local playerGroups = getElementData(player, "player.groups") or {} if playerGroups and playerGroups[groupId] then return true end end end return false end function text() if isPlayerInGroup(localplayer,1) then outputChatBox("Test") end end text() if the code have error show me the debug
  3. salh

    Vehicle-system

    Give us the code if you want us help you?
  4. salh

    Vehicle-system

    [main]/mysql/connection.Lua:206: bad argument #2 to 'mysql_escape_string' (string expected, got boolean) here say : the cod need string you put boolean boolean = true & false string = text
  5. اذا تبي برنامج visual studio visual code اذا تبي موقع https://repl.it/languages/Lua بس زي ما قال دابل اوامر الخاصة بلعبة مارح تشتغل معك
  6. تبي تتعلم Lua تعلمها لغة عامة مو خاصة ل mta يعني تعلمها من الاساسي تبي طرق تتعلم https://www.Lua.org/pil/contents.html هاذا الموقع كأنك تتعامل مع الويكي فيه كل شي
  7. salh

    Edit

    try if (DGS:dgsGetText(PasseditBox) == "444") then DGS:dgsSetText(LogineditBox , "321") elseif (DGS:dgsGetText(PasseditBox) == "321") DGS:dgsSetText(Hello , "321") oh no use this GUIEditor = { button = {}, window = {}, edit = {} } local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 613) / 2, (screenH - 326) / 2, 613, 326, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.edit[1] = guiCreateEdit(19, 42, 277, 96, "", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(313, 42, 277, 96, "", false, GUIEditor.window[1]) GUIEditor.edit[3] = guiCreateEdit(168, 148, 277, 96, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(10, 263, 593, 49, "Test", false, GUIEditor.window[1]) function salh ( button ) if button == "left" then if guiGetText(GUIEditor.edit[1]) == "123" then guiSetText(GUIEditor.edit[2], "321") end if guiGetText(GUIEditor.edit[2]) == "321" then guiSetText(GUIEditor.edit[3], "321") end end end addEventHandler ( "onClientGUIClick", GUIEditor.button[1], salh, false ) use the click function
  8. use function isMouseInPosition ( x, y, width, height ) if ( not isCursorShowing( ) ) then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then return true else return false end end addEventHandler ( "onClientClick", root, function ( button, state ) if ( button == "left" and state == "down" ) then if ( isMouseInPosition ( the postion of the button ) ) then -- code end end end )
  9. the server give you message? if he give you tell me what the message
×
×
  • Create New...