Jump to content

Chronic

Members
  • Posts

    145
  • Joined

  • Last visited

Everything posted by Chronic

  1. Hello For some reason getElementData is always returning false. server addEventHandler ( "onPlayerQuit", root, function ( ) setElementData ( source, "team", getPlayerTeam ( source ) ) setElementData ( source, "skin", getElementModel ( source ) ) end ) addEventHandler ( "onPlayerJoin", root, function ( ) setElementModel ( source, getElementData ( source, "skin" ) ) setPlayerTeam ( source, getElementData ( source, "team" ) ) end ) Does anyone know how to fix this?
  2. By default cars are unlocked. You can use setVehicleLocked to lock them or unlock them.
  3. I want 'yo' to be at the top of the edit box, for some reason it is in the middle.
  4. Hack servers? What is that?
  5. For some reason this happens: When I use this code: local sx,sy = guiGetScreenSize ( ) local cjGUI = guiCreateWindow ( sx/3.8, sy/3.8, sx/2, sy/2, "sup", false ) local cjEdit = guiCreateEdit ( sx/50, sy/20, sx/2.2, sy/3, "yo", false, cjGUI ) guiCreateButton ( sx/50, sy/2.5, sx/5, sy/3, "Accept", false, cjGUI ) guiCreateButton ( sx/3.65, sy/2.5, sx/5, sy/2.2, "Cancel", false, cjGUI ) guiEditSetReadOnly ( cjEdit, true ) Does anyone know how to fix this?
  6. Is there any way to log me in when I join the server? I tried this: Server Side: function yo ( ) if getPlayerName ( source ) == "Chronic" then logIn ( source, Chronic, "lolthisismypassword" ) end end addEventHandler ( "onPlayerJoin", root, yo ) Line 3: Expected account at argument 2, got nil Also, I realize that I could easily get hacked this way. It's a local server though so it's all good
  7. Chronic

    Timer

    function onTest() dxDrawText("+1500", 1211, 51, 1351, 77, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, true, false, false) dxDrawText("+1500", 1211, 49, 1351, 75, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, true, false, false) dxDrawText("+1500", 1209, 51, 1349, 77, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, true, false, false) dxDrawText("+1500", 1209, 49, 1349, 75, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, true, false, false) dxDrawText("+1500", 1210, 50, 1350, 76, tocolor(0, 100, 35, 255), 1.00, "pricedown", "left", "top", false, false, true, false, false) end addEvent( "onZombieWasted" ); addEventHandler( "onZombieWasted", root, function( killer ) givePlayerMoney( killer, 1500 ); addEventHandler("onClientRender", root, onTest) setTimer( function ( ) removeEventHandler ( "onClientRender", root, onTest ) end, 3000, 1 ) end)
  8. Put it at the line where you want to spawn the bot.
  9. exports["slothbot"]:spawnBot ( 2492.5251464844, -1671.7332763672, 13.335947036743, 0, 164, 0, 0, nil, 31, "hunting", nil ) Use this for more info: https://wiki.multitheftauto.com/wiki/Slothman/Slothbot
  10. Chronic

    fps

    What's the problem?
  11. function intro ( source ) triggerClientEvent (source, "stopCams", source) end addEventHandler ("onPlayerLogin", getRootElement(), intro)
  12. Did you use addEvent addEventHandler on server side? If you didn't, that's the reason the event isn't found.
  13. You made baga a local variable, so it wouldn't work. Change local baga = createPickup(i[1], i[2], i[3], 3, 1210) to baga = createPickup(i[1], i[2], i[3], 3, 1210)
  14. Because 1210 is an ID of an object(suitcase), not a pickup. If you want to attach the suitcase to you, use attachElements
  15. I'm having trouble understanding your English, if you're talking about an object like local pbags = { {2293.154, 561.47, 7.78}, {2287.2265625, 566.3486328125, 7.78125} } for _, i in ipairs(pbags) do local baga = createPickup(i[1], i[2], i[3], 3, 1210) end You can add another location by adding coordinates with brackets around them, like the example below. local pbags = { {2293.154, 561.47, 7.78}, {2287.2265625, 566.3486328125, 7.78125} {x,y,z} -- replace x,y,z with your coordinates. } for _, i in ipairs(pbags) do local baga = createPickup(i[1], i[2], i[3], 3, 1210) end
×
×
  • Create New...