Jump to content

BEN.

Members
  • Posts

    56
  • Joined

  • Last visited

About BEN.

  • Birthday 19/09/2001

Details

  • Gang
    [Victory]
  • Location
    Russia

Recent Profile Visitors

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

BEN.'s Achievements

Snitch

Snitch (10/54)

0

Reputation

  1. https://wiki.multitheftauto.com/wiki/GuiGetScreenSize
  2. https://wiki.multitheftauto.com/wiki/GetPlayerWantedLevel
  3. At line 15 should be elseif
  4. use guiSetVisible function for hide/show your GUI elements https://wiki.multitheftauto.com/wiki/GuiSetVisible
  5. triggerServerEvent addEvent
  6. BEN.

    help

    addEventHandler("onClientGUIClick",heal, function () health = getElementHealth(localPlayer) walo=getPlayerMoney(localPlayer) if (walo<3000) and (health<=100) then outputChatBox("you Don't have enough money",200,0,0) elseif (health>=100) and (walo>=3000) then outputChatBox("your health is already full",30,200,0) elseif (walo>=3000) and (health<=100) then setElementHealth(localPlayer,20) takePlayerMoney(3000) outputChatBox("you have bought medicine",20,30,200) end end) https://wiki.multitheftauto.com/wiki/GetLocalPlayer
  7. BEN.

    help

    getResources
  8. gridlist is not defined
  9. https://wiki.multitheftauto.com/wiki/Sc ... Tutorial_1
  10. you can make marker on client side too because it shared function
  11. BEN.

    [HELP] Faction

    try this function fbskin(thePlayer) local fac = getElementData(thePlayer,"Faction") local rank = getElementData(thePlayer,"Rank") if (fac == 4) then if (rank == 0) then setElementModel(thePlayer,117) elseif (rank == 1) then setElementModel(thePlayer,163) elseif (rank == 2) then setElementModel(thePlayer,164) elseif (rank == 3) then setElementModel(thePlayer,286) elseif (rank == 4) then setElementModel(thePlayer,166) elseif (rank == 5) then setElementModel(thePlayer,165) end else outputChatBox ( "Вы здесь не работаете!", thePlayer, 0,191,255 ) end end addEventHandler( "onMarkerHit", fbpickup, fbskin)
  12. function GUI(hitPlayer) if hitPlayer == localPlayer then showCursor(true) guiSetVisible(yourGridList,true) end end addEventHandler("onClientMarkerHit", yourMarker, GUI)
  13. setWeaponProperty
  14. I think setElementModel will better. Use it
  15. Oh really but now I don't have a problems with it
×
×
  • Create New...