botshara

Members
  • Content count

    77
  • Joined

  • Last visited

Community Reputation

0 Neutral

1 Follower

About botshara

  • Rank
    Transformer

Details

  • Gang
    grove street

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. botshara

    xmlNodeGetValue and Dx functions

    Yea, looks like problem is in interface script. Interface script store data in setElementData, and use getElementData to display data, maybe there is problem? Desync or something like that. Bug also happens with shorter text but with smaller fps drop.
  2. botshara

    xmlNodeGetValue and Dx functions

    still drop
  3. botshara

    xmlNodeGetValue and Dx functions

    Hello! Im getting a huge fps drop when I use xmlNodeGetValue in dxDrawText. From 60 fps to 7 fps. Here is my code example. Btw I use library to make GUIs. xmlRules = xmlLoadFile( "commands/rules.xml" ) function testMyGui() help_window = interface:dxCreateWindow(x, y, width, height, tocolor(0, 0, 0, 125), false, "Help panel", (35/1080)*sy, tocolor(0, 0, 0, 225), tocolor(255, 255, 255, 255), nil) interface:dxAddBorder(help_window, "bottom", tocolor(255, 102, 255), 1) interface:setActiveGUI(help_window) interface:dxSetMovable(help_window, true) local tabPanel = interface:dxCreateTabPanel(0.025, 0.15, 0.95, 0.8, width*0.1521, true, help_window, tocolor(0, 0, 0, 125)) local tabRules = interface:dxCreateTab(tabPanel, "Rules", tocolor(0, 0, 0, 125), nil, tocolor(255, 255, 255, 255)) local RulesBox = interface:dxCreateTextWindow(0.025, 0.05, 0.95, 0.9, true, tabRules, tocolor(0, 0, 0, 100), tocolor(255,0,0,255), tocolor(0,255,0,255), false) interface:dxTextWindowAddText(RulesBox, xmlNodeGetValue( xmlRules ), tocolor(255, 255, 255, 255)) local tabOverview = interface:dxCreateTab(tabPanel, "Command usage", tocolor(0, 0, 0, 125), nil, tocolor(255, 255, 255, 255)) local tabCommands = interface:dxCreateTab(tabPanel, "All comannds", tocolor(0, 0, 0, 125), nil, tocolor(255, 255, 255, 255)) end addEventHandler("onClientResourceStart", getRootElement(), testMyGui)
  4. botshara

    looking for server side event

    I need to check when player FALL OFF from the bike. For example I drive into pillar and I fall off from the bike. onVehicleExit doesnt trigger that. Ty bro that actually is that what i looked for.
  5. botshara

    looking for server side event

    Hello, Im looking for server side event when player fall from the bike. Anybody?
  6. botshara

    dxDrawRectangle on right click

    What do you mean with dx lib? Resource?
  7. botshara

    dxDrawRectangle on right click

    Hello, Im trying to make inventory script and I want when I press right mouse button on the item then acurs my function. The problem is that dx functions doesnt support onClientClick by default, I looked in forum and I found some solutions where onClientClick checks for coords, but this variant is not suitable for me because i need also check which item I pressed. Also I cant use onClientGUIClick for example by creating empty label because onClientGUIClick doesnt work when I press right mouse button. Any ideas?
  8. botshara

    load data in tab

    It is possible automatically add oder by for column when open GUI?
  9. botshara

    load data in tab

    Why onClientGUIClick doesnt work on guiCreateTab ? tabZombies = guiCreateTab( "Top 50 zombie killers", tabs ) addEventHandler("onClientGUIClick", tabZombies, showZombieKillers, false ) function showZombieKillers() outputChatBox("hi") end
  10. botshara

    setTrainSpeed

    +1. I hope this will come true.
  11. botshara

    load data in tab

    I want load data from triggerServerEvent but I get boolean in client side. I have records in db and i tested server side loop, it works and dont return boolean. Server side function ShowTopKillers() allData = {} local data = dbQuery(db, "SELECT * FROM top_killers ORDER BY kills DESC LIMIT 50") local result = dbPoll(data, -1) for ind, val in ipairs( result ) do local killer = {} killer.nick = val.nick killer.kills = val.kills killer.deaths = val.deaths --killer.kd = val.kd allData[killer.nick] = killer end return allData end addEvent("ShowTopKillers", true) addEventHandler("ShowTopKillers", getRootElement(), ShowTopKillers) Client side allKilers = triggerServerEvent("ShowTopKillers", localPlayer) killerCounter = 1 for id, killer in pairs(allKilers) do local row = guiGridListAddRow ( killersScreenGridList) guiGridListSetItemText ( killersScreenGridList, row, 1, killerCounter, false, false ) guiGridListSetItemText ( killersScreenGridList, row, 2, killer.nick, false, false ) guiGridListSetItemText ( killersScreenGridList, row, 3, killer.kills, false, false ) guiGridListSetItemText ( killersScreenGridList, row, 4, killer.deaths, false, false ) guiGridListSetItemText ( killersScreenGridList, row, 5, 0.69, false, true ) killerCounter = killerCounter +1 end
  12. botshara

    delete from internal.db

    Hello, in trying to delete some records from internal.db using sqlite db browser, but I got error. SQL DELETE FROM accounts, userdata USING accounts INNER JOIN userdata on (accounts.id = userdata.userid) WHERE accounts.name='somename' Error: Error: near ",": syntax error What is wrong ?
  13. botshara

    ColShape

    Hello, I want attach a colshape to object who is moving (moveObject), when hit on colshape player die or if he was in the vehicle then vehicle explode. I need do this Client-sided but if its impossible, server-sided also will be fine. E: Actually I dont need make colshape I think, maybe its possible server-sided ? When hit on object ?
  14. botshara

    FPS single-cored 64 bit devices

    Linux 64 bit server is also single-cored ?
  15. botshara

    start server via php

    Thanks for help, but I fixed this. I added after command '2>&1' and it showed "debug", I needed to create a new user which run a .php script, because password for that user which runed php script was false. There is any chance run a server via start paramters? Something like that ./mta-server.sh --IP blabla --password blabla