Jump to content

STD

Members
  • Posts

    5
  • Joined

  • Last visited

1 Follower

Details

  • Gang
    stack

Recent Profile Visitors

409 profile views

STD's Achievements

Vic

Vic (3/54)

2

Reputation

  1. A simple example of "bindKey", when you press a key that you put inside the "bindKey", it will execute, when executing it will check if the player is inside the ACL Admin or Group you exist that you want to put. Example: local key = "b" local statePress = "down" addEventHandler("onResourceStart", resourceRoot, function() for i, players in ipairs(getElementsByType("player")) do bindKey(players, key, statePress, checkGroupACL) end end) function checkGroupACL(player, key, state) local account = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then print("Yes, it's inside the 'Admin' ACL") else print("Error, not inside ACL 'Admin'") end end
  2. The GUI and DX functions do not work on files of the "shared" type, they only work on the "client" type. See the @Zango example above.
  3. You are using an element called source and you put a source element inside getAccountPlayer and you are using a source element, in which case I would change it to player to understand it better. See the wiki for an example of aclGroupRemoveObject
  4. dxEditBoxs This project was entirely developed by myself. this structure allows you to create edits in dxs. Edibox works in the same way as the standard CEGUI, so you don't have much work to adapt your code to this structure. Note the format that was written in the OOP format (using meta-tables, not the standard MTA system). Download Soon back
  5. Congratulations on the project.
×
×
  • Create New...