Jump to content

Dark Dragon

Members
  • Posts

    1,619
  • Joined

  • Last visited

Everything posted by Dark Dragon

  1. a gentleman doesn't use someones weapon against him later.
  2. addEvent("onPlayerFinish",true) -- add the custom event so our resource knows about it addEventHandler("onPlayerFinish",getRootElement(), -- add an event handler for the event function (rank,finishtime) if rank == 1 then -- check if the player finished first givePlayerMoney(source,100) -- give him 100$ if so end end )
  3. depends really much on what you're doing though. if you tell us what exactly you're doing we could recommend you one of those two ways
  4. the point that it would not be synced properly is indeed invalid. many client side functions cause desync. setGameSpeed for example. in fact we can just add them for both server and client and if we encounter any problems we can just disable them later. but that's just my point of view
  5. taste the power of links
  6. onClientRender + getControlState
  7. yes the new page looks promising and really awesome.
  8. race is still one of the most popular gamemodes, i really don't see any problem.
  9. User Control Panel -> Board Preferences -> My board style -> prosilver done
  10. variables are case sensitive. it must be "topRed" not "topred" etc: function changeSkyColor ( commandName, topRed, topGreen, topBlue, bottomRed,bottomGreen,bottomBlue ) --capital letters here topRed = tonumber ( topRed ) topGreen = tonumber ( topGreen ) topBlue = tonumber ( topBlue ) bottomRed = tonumber ( bottomRed ) bottomGreen = tonumber ( bottomGreen ) bottomBlue = tonumber ( bottomBlue ) if topRed and topGreen and topBlue and bottomRed and bottomGreen and bottomBlue then setSkyGradient( topRed, topGreen, topBlue, bottomRed, bottomGreen, bottomBlue ) else outputChatBox ( "Failed to change the sky colour!" ) end end addCommandHandler ( "setsky", changeSkyColor )
  11. oh come on, give people some time to respond.
  12. you need the login data from community.multitheftauto.com not the one of the forums
  13. there is such a resource, it's under development.
  14. by registering logging in and creating a new page? here you go: https://wiki.multitheftauto.com/wiki/Tut ... ng_Objects
  15. wow, this is awesome. it looks very professional! i really like it. amazing
  16. Dark Dragon

    Help?

    how can you even put the word "only" there?
  17. your problem is, that you check if the player element is attached to something, which is not the case at all. the blip is attached to the player, not the other way around. use getAttachedElements in a loop and use your size and icon check there if getPlayerName(source) == "[2RT]acp___(PL)" then setVehicleColor(getPedOccupiedVehicle(source), 79, 79, 79, 79) local elements = getAttachedElements(source) local docreate = true for i,v in ipairs(elements) do if ( getElementType(v) == "blip" and getBlipIcon(v) == 0 and getBlipSize(v) == 4 ) then docreate = false break end end if docreate then createBlipAttachedTo(source, 0, 1, 0, 0, 255, 255, 0, 400) outputDebugString("createBlipAttachedTo" ..getPlayerName(source), 3, 255, 0, 0) end end
  18. hi, to be honest, the easiest and probably best way to solve this is probably to just screw gui functions and use dx functions instead.i wouldn't wonder if the problem is more related to how gui treats images than to your code. for key, imageElement in pairs(carSymbols) do guiSetVisible(imageElement, false) end also this is supposed to be true i guess, not false. a thing you could try is to give all the images a parent and only set the parents visibility. but i really recommend using dx functions instead, it's faster,better and more reliable.
  19. cool solution but what was the problem?
  20. very cool. robhol is credit to mta!
  21. did you try these possible solutions?
  22. I'm a little bit confused now In my opinion there is no need for client-side handling functions, having all that synced in all cases reduces confusion to new users or users who just don't know handling functions yet
  23. It was all meant to be, it was all destiny.
  24. no matter what others say, performance does matter.
×
×
  • Create New...