• Content count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About botshara

  • Rank


  • Gang
    grove street
  1. dxDrawRectangle on right click

    What do you mean with dx lib? Resource?
  2. 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?
  3. load data in tab

    It is possible automatically add oder by for column when open GUI?
  4. 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
  5. setTrainSpeed

    +1. I hope this will come true.
  6. 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
  7. 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 ( = userdata.userid) WHERE'somename' Error: Error: near ",": syntax error What is wrong ?
  8. 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 ?
  9. FPS single-cored 64 bit devices

    Linux 64 bit server is also single-cored ?
  10. 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 ./ --IP blabla --password blabla
  11. start server via php

    Hello im trying to start a server via php script, but the server doesn't starting.. shell_exec is enabled and I have renamed a mta-server to I know that start server using root is not securely and cool, but Im just trying <?php if ($_GET['start'] == 'true') { shell_exec("echo 'rootpw' | sudo -u root -S /home/mtarp/"); echo 'Server started'; } else { echo 'something wrong'; } ?>
  12. [QUESTION] getSoundMetaTags

    Thanks for support. I Tryed with setTimer like said @Jusonex and works very good, CPU usage from 20% to 2% for my radio resource. Thumbs up guys
  13. [QUESTION] getSoundMetaTags

    addEventHandler ( "onClientRender", root, function ( ) if isPedInVehicle ( localPlayer ) then local vehicle = getPedOccupiedVehicle ( localPlayer ) if not vehicle then return end local radioID = getElementData ( vehicle, "radioID" ) if radioID and radioID >= 0 then local sound = getSoundsBlyat[vehicle] if isElement(sound) and sound and getSoundMetaTags ( sound ) then song = getSoundMetaTags ( sound )["stream_title"] end and so on .......
  14. [QUESTION] getSoundMetaTags

    Hello, Im making radio script and I want get stream title from radios, but problem is that I get very big perfomance lags when I start my radio. Im using onClientRender Handler and getSoundMetaTags function to get stream title. Without this function script using only ~2% CPU but with this function (getSoundMetaTags) script using ~20% CPU. There is any alternative using onClientRender Handler and dont get perfomance lags ?
  15. visual damage

    Nop, I have this script, with this cant damage car physically (when black smokes go out from motor and cant start motor), but I want make script which cant damage car visually when hitting by hand. Works like anti-DM script for roleplay server