Jump to content

Fantanic

Members
  • Posts

    160
  • Joined

  • Last visited

Everything posted by Fantanic

  1. Fantanic

    [Bribe]

    So if im right i got to split the function? Edit , but i cant split it here if im right or am i wrong? or function bribepickup() guiSetVisible(bribegui,true) addEventHandler("onPickupHit",offerbribe,bribepickup) excuse me if im wrong im trying to learn more of LUA
  2. Fantanic

    [Bribe]

    function bribegui() GUIEditor.window[1] = guiCreateWindow(310, 165, 112, 153, "Bribe", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.radiobutton[1] = guiCreateRadioButton(9, 31, 93, 15, "1 star", false, GUIEditor.window[1]) GUIEditor.radiobutton[2] = guiCreateRadioButton(10, 46, 92, 15, "2 star", false, GUIEditor.window[1]) GUIEditor.radiobutton[3] = guiCreateRadioButton(10, 61, 92, 15, "3 star", false, GUIEditor.window[1]) GUIEditor.radiobutton[4] = guiCreateRadioButton(9, 76, 93, 15, "4 star", false, GUIEditor.window[1]) GUIEditor.radiobutton[5] = guiCreateRadioButton(10, 91, 92, 15, "5 star", false, GUIEditor.window[1]) guiRadioButtonSetSelected(GUIEditor.radiobutton[5], true) GUIEditor.radiobutton[6] = guiCreateRadioButton(10, 106, 92, 15, "6 star", false, GUIEditor.window[1]) guiSetVisible(GUIEditor.window[1],true) --- asfar im aware this is right end function offerbribe() local bribePick = createPickUp(1247, x +2, y +2, z) end addCommandHandler("bribe",offerbribe) addEventHandler("onPickUpHit",bribePick, bribegui) --- im not sure about this one here i know i miss some things but i dont know what
  3. Fantanic

    [Bribe]

    local bribePick = createPickUp(1247, x +2, y +2, z) addEventHandler("onPickUpHit",bribePick, bribegui) like this?
  4. Fantanic

    [Bribe]

    createObject( Object ID ) ? + how to get it so if u hit the object the gui will show up?
  5. Fantanic

    [Bribe]

    function bribegui() GUIEditor.window[1] = guiCreateWindow(310, 165, 112, 153, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.radiobutton[1] = guiCreateRadioButton(9, 31, 93, 15, "1 star", false, GUIEditor.window[1]) GUIEditor.radiobutton[2] = guiCreateRadioButton(10, 46, 92, 15, "2 star", false, GUIEditor.window[1]) GUIEditor.radiobutton[3] = guiCreateRadioButton(10, 61, 92, 15, "3 star", false, GUIEditor.window[1]) GUIEditor.radiobutton[4] = guiCreateRadioButton(9, 76, 93, 15, "4 star", false, GUIEditor.window[1]) GUIEditor.radiobutton[5] = guiCreateRadioButton(10, 91, 92, 15, "5 star", false, GUIEditor.window[1]) guiRadioButtonSetSelected(GUIEditor.radiobutton[5], true) GUIEditor.radiobutton[6] = guiCreateRadioButton(10, 106, 92, 15, "6 star", false, GUIEditor.window[1]) end function offerbribe() local theObject = createObject ( (star object i need list where to find the star object ID), x + 2, y + 2, z, 0, 0, 0 ) local tempCol = createColTube ( fX + 2, fY + 2, fZ, 10.0, 10.0 ) end addCommandHandler("bribe",offerbribe) Like this? (i still need the object id list of pickups btw) Like this?
  6. Fantanic

    [Bribe]

    Hm i will try to make it with only 1 gui for the begin ( 1-6 ) (trying to script it right now )
  7. Fantanic

    [Bribe]

    So i got to create 6 guis and then. I let it check for wanted ? Or 1 gui?
  8. Fantanic

    [Bribe]

    For example , player 1 got 1 star then he only sees in the gui "1 star" player 2 got 2 stars so he sees in the gui " 1 star" AND "2 star"
  9. Fantanic

    [Bribe]

    U didnt understood it m8 look at the end i said 'since when we can just see on wiki 'if u got so much wanted levels u only see 1 2 3 " , is there one? i dont think so... P.S as i told u dont have to answer anymore
  10. Fantanic

    [Bribe]

    Ahye u didnt answered my question but no matter u dont have to answer again im waiting for someone else whos expierenced with this + since when we can just see on wiki 'if u got so much wanted levels u only see 1 2 3"
  11. Fantanic

    [Bribe]

    Hello , Im trying to make a bribe system but im not sure wich functions i got to use I would like to have if you do /bribe then there comes a object (star ) and if u run into it You get a gui with wanted levels + price , Also i would like to have it so if u got 5 stars only 1 2 3 4 5 are showing up and not 1-6 for example.
  12. bad argument expected element at argument 2 got function (server side)
  13. What do u mean exactly with the triggerClientEvent , like this ; function unbind1() triggerClientEvent end addEventHandler("onPlayerLogout",unbind1)
  14. function bind() bindKey("M", "down", showPanel) end addEventHandler("onPlayerLogin",bind) function unbind() unBindKey("M", "down", showPanel) end addEventHandler("onPlayerQuit",unbind) ?
  15. Hello , I would like to know if its posible to bind a key on playerlogin and unbind the key on playerlogout (i got some problems with login panel wich is ; if i press M for example M panel shows up bindKey("M", "down", showPanel) Greetings , Jonas
  16. Thanks didnt see it
  17. Ok i pause the object above a little bit ; if colR1 and colG1 and colB1 and colR2 and colG2 and COLB2 then setVehicleColor(vehicle, colR1, colG1, colB1, colR2, colG2, colB2) is this correct if i got this ; local colR1 = node["r1"] local colG1 = node["g1"] local colB1 = node["b1"] local colR2 = node["r2"] local colG2 = node["g2"] local colB2 = node["b2"] so it sets the color wich is write at colg2 etc (its like R G B)
  18. Hello , I wanna make a weapon storage (small panel ) so i want to store some weapons in a gui for example if u do /storage (just example) then u get 2 collums , one with Youre weapons and second one with Storage of the weapons So my question is , wich functions do i need to make? (i already made the gui)
  19. i meant how to get the message , so i should use "ADMIN_GROUP" "name" "count" ? or what u mean
  20. How to get the message from the user.names?
  21. Ty so i should trigger the client eh?7 (trying it right now)
  22. Hm u know whats wrong with this? i try to copy the message : addCommandHandler ( "SAPDHQ", function ( player ) local accName = getAccountName ( getPlayerAccount ( player ) ) -- get his account name if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then -- Does he have access to Admin functions? local ADMIN_GROUP = "SAPD HQ" local objects = aclGroupListObjects ( aclGetGroup ( ADMIN_GROUP ) ) local count = 1 for object, name in pairs ( objects ) do outputChatBox ( "Group List: ".. ADMIN_GROUP .." #".. tostring ( count ) .." Object: ".. name ..".", player ) count = ( count + 1 ) setClipboard("Group List: .. ADMIN_GROUP .. #.. tostring ( count ) .. Object: .. name ..") end end end ) with removing the check that hes in aclgroup (that only 'admin' can use it it still doesnt copy the text)
  23. Yes is it posible to get only the user.(name)? like this? oh also how to get it in gridlist? (only need the functions and a example that i can script it by myself for putting it in gridlist)
×
×
  • Create New...