Jump to content

willian~

Members
  • Posts

    5
  • Joined

  • Last visited

willian~'s Achievements

Vic

Vic (3/54)

0

Reputation

  1. Email (for panel information): [email protected] * Moderator note: don't post e-mail address if it contains your first + last name Country: Tunisia Sv Location (France available): France Demo Sv Account Name: Hanns Extra notes: i want an mta server please
  2. This is the code, but when i add the script to FTP it dont work local wepSlotsToBinds = { [1] = {0, 1, 10}, [2] = {2, 4}, [3] = {3}, [4] = {5}, [5] = {6, 7}, [6] = {8, 12}, [7] = {9, 10, 11}, } function selectWeapon(cmd) local key = string.gsub(cmd, "[a-z]", "") or "" local key = tonumber(key) local binds = wepSlotsToBinds[key] if (not binds or #binds == 0) then return false end local curSlot = getPedWeaponSlot(localPlayer) for i, slot in ipairs(binds) do if (slot >= curSlot and binds[i + 1] and setPedWeaponSlot(localPlayer, binds[i + 1])) then return true end end for i, slot in ipairs(binds) do local setSlot = setPedWeaponSlot(localPlayer, slot) if (setSlot or slot == 0) then return true end end end addCommandHandler("vselwep1", selectWeapon) addCommandHandler("vselwep2", selectWeapon) addCommandHandler("vselwep3", selectWeapon) addCommandHandler("vselwep4", selectWeapon) addCommandHandler("vselwep5", selectWeapon) addCommandHandler("vselwep6", selectWeapon) addCommandHandler("vselwep7", selectWeapon) addCommandHandler("vselwep8", selectWeapon) addCommandHandler("vselwep9", selectWeapon) bindKey("1", "down", "vselwep1") bindKey("2", "down", "vselwep2") bindKey("3", "down", "vselwep3") bindKey("4", "down", "vselwep4") bindKey("5", "down", "vselwep5") bindKey("6", "down", "vselwep6") bindKey("7", "down", "vselwep7") bindKey("8", "down", "vselwep8") bindKey("9", "down", "vselwep9")
  3. searching for someone to help me in making CnR server , gonna pay 60$+ .
×
×
  • Create New...