Jump to content

BabY

Members
  • Posts

    138
  • Joined

  • Last visited

Everything posted by BabY

  1. Actually that's EXACTLY what I use. And that's EXACTLY what made me discover this problem lol
  2. I tried to avoid this path, but seems like it's the only way then. Thanks for your time and support. Good luck with dxLib.
  3. My problem isn't positioning the label, my problem is housing it with more-than-what-my-screen-height-can-house lines. I tried a bunch of methods to move the label around, but this doesn't affect the said limit sadly. And I need to use a label instead of dxText because I'm dealing with CEGUI, and the main theme of my script is CEGUI because I heavily use GUI functions.
  4. Draw labels in a render target? Seems like I can't find out how to do it, I only managed to draw dxText which isn't really flexible in my case.
  5. If I use this dummy code for example, testLabel = guiCreateLabel(0, 0, 5000, 5000, "1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20\n21\n22\n23\n24\n25\n26\n27\n28\n29\n30\n31\n32\n33\n34\n35\n36\n37\n38\n39\n40\n41\n42\n43\n44\n45\n46\n47\n48\n49\n50", false) addCommandHandler("sl", function() -- scroll label guiSetProperty(testLabel, "AbsoluteYPosition", guiGetProperty(testLabel, "AbsoluteYPosition") - 20) end) addCommandHandler("add", function() local text = guiGetText(testLabel) text = text .. "\nHello world!" guiSetText(testLabel, text) end) I cannot add more lines after the line that 'fills' my screen height perfectly. Even if I scroll the label using /sl Any ideas? I tried the properties: - ClippedByParent - The Unified family - VertExtent - Margin It doesn't seem to cause errors when the text is added, because if I move the label down on the Y axis, and scroll it up again the text is still there. Seems like it's a default limitation. I have reasons to use a label instead of a ReadOnly Edit.
  6. It isn't a resource that you can look up, it's embedded into the client. If you're interested in how it works try looking at the source code EDIT: And look for function signatures, they'll mostly have the implementations.
  7. People tried to help you, and you were a douchbad to them and started yelling. It is a label, when it's hovered you change its color. When you hover away you reset its color. When it's clicked you invoke whatever function you want to be called. You set its position relatively, because you want to ensure it sticks to the edges of the main window. You set its ClippedByParent property to False so that the title bar doesn't hide it. Show more respect to those who try to help you, otherwise nobody will give a about you. EDIT: And that function signature you posted is just a ready-to-use one, but I bet its internals have all what we've been telling you.
  8. BabY

    Unified Textures

    So CrystalMV means that I should use isElementStreamedIn and if not isElementStreamedIn when replacing the .dff and .txd ? Or just replace the object which I replaced it's ID far than same ID of the object I replaced ? Simple way : What I mean is if I did what Crystal means so That will be right (Object I replaced) ------------------------------------------------------------------------- (Object with same ID) And that will be wronge ? (Objet I replaced) ----------------------- (Object with same ID)
  9. BabY

    Unified Textures

    Excuse me, I hear "Stream" alot.. but I don't know what it means.. What's the meaning of Stream in and Stream out ?
  10. I don't know what is MySQL If it's like xml, then you can use it to save \ load data ! And you can register the saved items as a new element, and make new functions for it... Tips : Identify ammo and weapon slots, vehicles and it's health etc...
  11. You need to make it using .xml file. Try to do something yourself, what's the binfit of Wiki IYO?
  12. BabY

    attachelement

    Better way! : function attach (Player, Command, ID, rotX, rotY, rotZ) local car = getPedOccupiedVehicle(Player) local posX, posY, posZ = getElementPosition(car) local object = createObject (ID, 0, 0, 0, 0, 0, 0) attachElements (object, car, posX, posY, posZ, rotX, rotY, rotZ) else outputChatBox ("* Error!", Player, 255, 0, 0) end addCommandHandler("attach", attach) addCommandHandler("removeattach", function(Player, command) destroyElement(getElementsAttachedTo(getPedOccupiedVehicle(Player))) end You should enter the ID of the object you want to attach to your car, then enter rotation X, Y and Z Example : /attach 12450 0 0 90 To remove attached elements, type /removeattach Hope it works for you! I put some effort on that!
  13. BabY

    Cars

    Maybe identify all cars (BLAH = getElementsByType ("vehicle")) then use (if BLA = getElementHealth(BLAH) and (BLA) == < 80 then) and set a timer to delete the element which is the vehicle.
  14. I though It's damaged \ burned ...?
  15. I will help you little bit in that *WARN* This is not the full script, I'm just making some steps to help you making the script : health = getElementHealth (player) setElementHealth (player, health - 10) ---------------------------------------------------------------------------------------------------------- setTimer (NAMEofFUNCTION, 60000) ---------------------------------------------------------------------------------------------------------- peeTimer = setTimer (nameOfPeeingScript, 30000) ---------------------------------------------------------------------------------------------------------- if (nameOfPeeingScript) then killTimer (peeTimer)
  16. You can get the weapon's .dff and .txd, stick it to the player's hand while loading the weapon's animation (hold) using that sticky bones script
  17. Hello Community, I'm tring to replace some textures for one object only, I tried to search for some codes to do that, but I'm lucky. Theres a way to replace DFF\TXD for only one object only ? Example : object = createObject (ID, bla, bla, bla, anotherBla, anotherBla, anotherBla) and set the ID to a custom file (.dff, .txd) ?
  18. Uhmmm.. well I think it confirm the function loading.. or if it's for huge functions .. example : addCommandHandler("globalmute", function() for index, player in ipairs(getElementsByType("player")) do setPlayerMuted(player, true) end end) This is a command, it doesn't need any event handlers.. but if it's : function gMute() for x,y in ipairs(getElementsByType("player")) do setPlayerMuted(player, true) end end addEventHandler("onResourceStart", getRootElement(), gMute) This script will need the event handler, because "for x,y in ipairs....etc." will of course cause an error, and the script won't load. According to my knowleg, event handlers is added for multiply functions or 2+ functions in one script.. but if it's one script, it's not recommended to use the handlers. And somehow, people may use it for increasing script's lines only
  19. BabY

    Problem with Gates

    Ok, solved. Thanks for helping.
  20. BabY

    Problem with Gates

    Okay, I Changed the script file into server-sided script.. but there was another problem, I actually don't know whats the main issue for it... function stuff () object1 = createObject ( 988, 138.6767578125, 2029.4296875, 18.25, 0, 0, 180 ) object2 = createObject ( 988, 131.9423828125, 2029.4296875, 18.25, 0, 0, 180 ) Marker1 = createMarker ( 135.48503112793, 2038.0122070313, 16.815912246704, "cylinder", 8, 255, 255, 255, 50) Marker2 = createMarker ( 135.48503112793, 2021.5325927734, 16.815912246704, "cylinder", 8, 255, 255, 255, 50) end addEventHandler("onMarkerHit", Marker1, function() enterGates() end ) addEventHandler("onResourceStart", resourceRoot, stuff) function enterGates(thePlayer, matchingDimension) if source == Marker1 then if isElementWithinMarker (thePlayer, Marker1) then local getTeam = getPlayerTeam" class="kw2">getPlayerTeam(getLocalPlayer()) if ( getTeam ) then local teamName = getTeamName(getTeam) if (teamName) == "Special Force" then moveObject ( object1, 10000, 144.6767578125, 2029.4296875, 18.25, 0, 0, 180 ) moveObject ( object2, 10000, 126.3423828125, 2029.4296875, 18.25, 0, 0, 180 ) end end end end end Debugscripter always tell me that the event "addEventHandler" in line 7 always have "Bad argument" .. so Whats the problem here ?
  21. BabY

    Problem with Gates

    Line 15 in C-side is : local getTeam = getPlayerTeam(getLocalPlayer()) Idk what is this class stuff
  22. Hey all, Long time no posing... but Now I Need some help : So.. I Making a gate to Open for any one in the team "Special Force" .. It's working well, but here comes the Problem, The gates are shown ONLY for the localPlayer who entered the marker... I tried to add an event of the gate being opened, then trigger it in a sever-side script, but still fail Client Side : enterGates = false --global function function stuff () --create objects and markers object1 = createObject ( 988, 138.6767578125, 2029.4296875, 18.25, 0, 0, 180 ) object2 = createObject ( 988, 131.9423828125, 2029.4296875, 18.25, 0, 0, 180 ) Marker1 = createMarker ( 135.48503112793, 2038.0122070313, 16.815912246704, "cylinder", 8, 255, 255, 255, 50) Marker2 = createMarker ( 135.48503112793, 2021.5325927734, 16.815912246704, "cylinder", 8, 255, 255, 255, 50) addEventHandler("onClientMarkerHit", Marker1, function(Player) if Player == getLocalPlayer() then enterGates() --trigger the enterGates function when localPlayer enters the marker end end ) end addEventHandler("onClientResourceStart", resourceRoot, stuff) --trigger the stuff function to load markers & objects function enterGates (player) if source == Marker1 then local getTeam = getPlayerTeam" class="kw2">getPlayerTeam(getLocalPlayer()) if ( getTeam ) then local teamName = getTeamName(getTeam) if (teamName) == "Special Force" then moveObject ( object1, 10000, 144.6767578125, 2029.4296875, 18.25, 0, 0, 180 ) moveObject ( object2, 10000, 126.3423828125, 2029.4296875, 18.25, 0, 0, 180 ) end end end endaddEvent("enteringGates", true) --creating the event of opening gates addEventHandler("enteringGates", getRootElement(), enterGates) Server-side : function theGates ( playerSource ) triggerClientEvent ( "enteringGates", getRootElement()) end Hope you help fast, I'm now not so noob in scripting.. so you can kinda trust me
  23. BabY

    [REL] weaponhud

    OMG It's Very cool I Had a New suggestion, What about Letting the Choice to Chose the Highlight color ? I Hate that White Or maybe Adding Transparency to it or maybe the both Greets, MI550
  24. BabY

    A big problem

    uhmm .. Well, It's Working Prefectly with my Friend too ... I Don't know why ... But It's just Working as it Should. * When I Start xFire, and Run MTA ... MTA Just open Well ... and Show this Logo of the Game boster ... Then it Freezes and Close ..... WTF ?? and I Saw my Friend's MTA Once on TeamViewer, It's just Cool ... and the GUIs and Working well ... BUT!!! ... His Windows is Windows XP, While mine is Windows 7 Ultimate ... This could be Huge difference ? I Hope they Release the Supports pack that Include MTA:SA Greetz, MI550 \ LiL_BabY
  25. omg .. msh 2ader 2astana xDDDD bey2olo f VOICE CHAT !!!!!!!!!!
×
×
  • Create New...