JeViCo

Members
  • Content Count

    502
  • Joined

  • Last visited

  • Days Won

    1

JeViCo last won the day on April 21 2018

JeViCo had the most liked content!

Community Reputation

82 Popular

3 Followers

About JeViCo

  • Rank
    Playa Partner

Recent Profile Visitors

1,925 profile views
  1. JeViCo

    module question

    В том то и проблема, что это не бот для канала, а standalone приложение, которым я могу воспользоваться только при помощи модулей, а не http запросов :с Вот как это осуществить я не совсем понимаю. Там используются функции вида модуль.функция, а на уме пока что такая картина (своего рода переход): function функция (...) return модуль.функция(...) end @IIYAMA thank you for your help but i have .dll module. I guess i should make my own methods as @Sorata_Kanda and @XaskeL have already mentioned I think i should do some kind of function transition but i don't know where to start
  2. JeViCo

    module question

    Thanks for reply! I tried that and got nothing. I think i can't use this function at all What do you mean? Custom functions? I don't understand modules much but i'm gonna do whatever it takes I tried to use discord RPC library (Lua) ( functions such as discordRPC.initialise where discordRPC = require("discord-rpc") )
  3. JeViCo

    module question

    bump
  4. JeViCo

    module question

    Hi there! I have custom module for lua language (dll) which use require function to work example: local modul = require("my-module"); local variable = modul.func(some_args, another_stuff) Of course i added this module to mtaserver.conf to avoid require but i don't know how can i use that function from example (module.func) now.
  5. JeViCo

    [help] script

    @RootBey you can simply disable it with this code: addEventHandler("onClientKey", root, function(key) if key == "t" then cancelEvent() end end) OR (if you want to disable chat) you can use this code:
  6. JeViCo

    [HELP] Level requirements

    @Knuck you can simply iterate through table function addXp(player, amount) local xp = getElementData(player, "XP") + amount -- move to new level for i, v in pairs (LEVELS) do if xp >= v then xp = v - xp -- if you need it ofc setElementData(player, "Level", xp) break end end setElementData(player, "XP", xp) end
  7. JeViCo

    how to disable global chat on MTA Server (RPG)

    @RangerMind you should use separate table for this action as @mehmet said you should use createColSprere + onClientColShapeHit to insert players into table and then remove them when onClientColShapeLeave event triggers. By using onClientChatMessage event you can filter messages and display them from players, who are in your table This method won't affect performance much
  8. JeViCo

    getting server information

    @XaskeL You can get a count of players using php (php sdk)
  9. Ты можешь использовать setElementData/getElementData или таблицы/метатаблицы для использования данных в скрипте, но в твоём случае данные сохраняются в БД, поэтому пускай userdata - это наш игрок. Сразу в бд ты не сможешь запихнуть его - будет выдавать ошибку. Тебе понадобятся дополнительные данные, которые с этим игроком связаны, например великолепная функция getAccountID (получаешь id аккаунта, что логично) @Voter
  10. JeViCo

    [HELP] Move object with cursor

    onClientCursorMove (worldX, worldY, worldZ variables + some math stuff to move object in 1 axis) + moveObject or setElementPosition @Lezlike
  11. just a 1 question. Did you use shaders only to do this ?)
  12. I know about socket module that can manage with it. Also i can output mta messages on discord server using web hook, but can i do it in opposite direction? I mean can i output discord messages on mta server without additional modules?
  13. please move it to russian server problems
  14. JeViCo

    fetchRemote problems

    thank you so much @IIYAMA i fixed my problem)
  15. JeViCo

    [HELP] How to fix this bug in render target?

    could you give us more info? When does it happen?