Jump to content

nikitafloy

Members
  • Posts

    419
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by nikitafloy

  1. getElementData(player, 'id') can be nil
  2. Use regulars: string.match For example
  3. @Thomas_Nightfire i would check how work animation when u attach ped to Element And look another boolean-params setPedAnimation function, u should to try different value
  4. https://wiki.multitheftauto.com/wiki/OOP_in_Lua
  5. If u looking staff: https://forum.multitheftauto.com/forum/149-looking-for-staff/ If u have problem - we need in description
  6. Collections data in elementData type and save. On spawn - get elementData and apply changes from ur scripts. Use exports, triggers if u need.
  7. @Alice Synthesis Thirty Error, when i try to add Check discord name
  8. in function outputChatBox, client-side, localPlayer dont use how 2nd argument
  9. U can to try use ACL and manage ACL for commands. 'command.giveWeapon', for example Any ACL groups can take weapon, if ur give rights for it Or use commands with check team (getPlayerTeamName == 'Any Team Name')
  10. https://community.multitheftauto.com/?p=resources&s=details&id=18028 - url on download resource in files
  11. triggerClientEvent (thePlayer, "Start", thePlayer) function painel () outputChatBox("aloboizaumm") if painel == false then showCursor (true) addEventHandler ("onClientRender", root,abrir) painel = true end end addEvent("Start", true) addEventHandler("Start", localPlayer, painel) triggerClientEvent
  12. @xFabel addEventHandler("onPlayerLogin", root, function(_, theCurrentAccount) local acc = getAccountData(theCurrentAccount,"AccountPlayer") if not acc then -- not acc, because its new account - new account havent any datas setAccountData(theCurrentAccount,"AccountPlayer",true) end end)
  13. -- Its new account? getAccountData(thisAccount,"oldAccount") -- No, then setAccountData(thisAccount,"oldAccount",true) -- Now its old account
  14. u need to update function with ped it should be: local theSkin function test() theSkin = getElementModel( skin ) print(theSkin) end
  15. No problem, u can write me: debugscript#0201 or forum pm
  16. Лень разбираться в коде. Смотри как создаются объекты и как удаляются. Названия дат элементов и триггеры на русский бы тоже перевести для большего понимания.
  17. Что значит "элемент этого оружия"?
  18. Всегда считал, что найти решение проблемы можно быстрее, чем описывать саму проблему, делать видео и т.д. Все решение находится в самом коде - нужно смотреть только его, начиная с запущенных скриптов. Отключать по очереди те, что запущены. Когда все станет ОК - решать проблему в этом скрипте.
  19. Тем, каким группам хочешь отключить
  20. Привет, да, отпиши в личку или ВК: vk.com/lbecker
  21. dbExec(ваше подключение, "SET CHARACTER SET utf8")
×
×
  • Create New...