Jump to content

xeon17

Members
  • Posts

    1,903
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by xeon17

  1. addCommandHandler( "darveiculo", function (playerSource, cmdName, ID) local px, py = getElementPosition(playerSource) local vehName = getVehicleNameFromModel(ID) if ID and type(vehName) ~= "string" then return outputChatBox("O ID do veículo é inválido", playerSource, 225, 0, 0) elseif not ID then return outputChatBox("Sintaxe: /darveiculo ID", playerSource, 225, 0, 0) end for _,Pl in ipairs(getElementsByType("player")) do local x, y, z = getElementPosition(Pl) local Distance = getDistanceBetweenPoints2D(px, py, x, y) if (Distance <= 30) then outputChatBox("Você ganhou o veículo "..vehName, Pl, 0, 255, 0) local veiculo = createVehicle( ID, x, y, z ) warpPedIntoVehicle (Pl, veiculo ) end end end )
  2. xeon17

    intro [Help]

    Wiki have examples.
  3. Why you ignored my post? i already given you the code which will work. If he add he add the resource in ACL , this will change nothing.
  4. xeon17

    [HELP] OOP

    I still got the same error
  5. Everything is ok , i don't know what is the problem. Could you post the code how it look at the moment?
  6. Show your ACL.xml and the code you're using at the momment. and check /debugscript 3 for errors.
  7. Use this , don't forget to do the following thing. Admin Panel > Resources > Manage ACL > ADMIN ACL > add right > and add ''command.dog'' Admin Panel > Resources > Manage ACL > ADMIN ACL > add right > and add ''command.deletedog'' Admin Panel > Resources > Manage ACL > ADMIN ACL > add right > and add ''command.unlockall PART 1: addCommandHandler("dog", DMCreateDog,true) addCommandHandler("deletedog", DMDeleteDog,true) addCommandHandler("unlockall", DMUnlockAll,true) PART 2: --DOG CREATOR function DMCreateDog() if(DMClientOwnerGotDog == true)then outputChatBox("You already have a dog!", 255, 0,0) else if(DMDogPanel == true)then removeEventHandler("onClientRender", getRootElement(), DMDogPanelGui) DMDogPanel = false guiSetVisible(DMDogPanelButton1, false) guiSetVisible(DMDogPanelButton2, false) guiSetVisible(DMDogPanelButton3, false) guiSetVisible(DMDogPanelButton4, false) guiSetVisible(DMDogPanelButton5, false) guiSetVisible(DMDogPanelButton6, false) guiSetVisible(DMDogPanelButton7, false) showCursor(false) end '
  8. xeon17

    [HELP] OOP

    no? https://wiki.multitheftauto.com/wiki/OOP_client
  9. xeon17

    [HELP] OOP

    Why this doesen't work? local components = { "weapon", "ammo", "health", "clock", "money", "breath", "armour", "wanted" } addEventHandler( "onClientResourceStart", resourceRoot, function() if(not getElementData(localPlayer,"draw.hud")) then for _, component in ipairs( components ) do component:setHudComponentVisible(false) end end end) Debugscript: attempt to call method 'setHudComponentVisible' (a nil value)
  10. Not really possible with your scripting skills. You should find someone who would create it for you for money.
  11. You'll need to create the blips with dxDrawImage But it's not easy , and you should know math also so....
  12. Next time seach on community before you ask here. https://community.multitheftauto.com/in ... ces&s=list https://community.multitheftauto.com/ind ... ls&id=7255
  13. Compiled is not useful It's usefull for me,i just love this hud? and now?
  14. use cancelEvent to prevent a player to die (onPlayerWasted)
  15. I learned with literally NO programming knowledge. I went to our wiki, looked at examples, made my own functions based on those. It's the easiest way to learn. Same with me Woovie
  16. https://community.multitheftauto.com/ind ... s&id=10307 :D :D
  17. There isn't big difference betwen your and the default GTA Hud.
  18. Why you waste your time to create the ''same'' thing as in community? god..
  19. Is this even RPG? jobs,busniess,bases,something usefull,something new,something what already isn't on community?
×
×
  • Create New...