Недавнее содержимое от nodobra

  1. N

    POST request to Pastebin with lua

    Hey. I'm trying to upload some text to pastebin using Moonloader. The thing is no matter what I do, pastebin returns: text = "Bad API request, invalid api_dev_key. I was trying to achieve the same thing by using a terminal and curl. It works just fine there, so the key I'm using is correct...
  2. N

    Вопросы по Lua скриптингу

    What am I doing wrong? I'm getting: text = "Bad API request, invalid api_dev_key all the time but I'm sure the key is correct and the account is activated. It works when I try to do it with curl from the command line. local copas = require 'copas' local http = require 'copas.http' local...
  3. N

    Вопросы по Lua скриптингу

    How can I return custom data with samp events? Let's say I'd like to make an object bigger INCOMING_RPCS[RPC. SETPLAYERATTACHEDOBJECT] = {'onSetPlayerAttachedObject', {playerId = 'int16'}, {index = 'int32'}, {create = 'bool'}, {object = { {modelId = 'int32'}, {bone = 'int32'}...
  4. N

    Вопросы по Lua скриптингу

    Is there a way to check if an object is attached to our skin and then remove it from my screen? I was trying to use sampSendEditAttachedObject() but it seems to work only in the "attachment edit menu". Sometimes I want to hide an attached object that doesn't have the option to edit it but server...
  5. N

    Вопросы по Lua скриптингу

    Is there anything to edit a text that's inside a dialog? I'd like to rename e.g. Cops and Robbers to C&R. I was trying to find it in the docs but didn't find anything, I probably don't know what to look for.
  6. N

    Вопросы по Lua скриптингу

    Is there any way to detect if a textdraw changes its value? I need to monitor status of a textdraw all the time when player is playing (spawned and in spectate mode) Something like this (but working): function main() if not isSampfuncsLoaded() or not isSampLoaded() then return end while...