Jump to content

tosfera

Members
  • Posts

    1,193
  • Joined

  • Last visited

Everything posted by tosfera

  1. Looks like an image of vG.
  2. addEventHandler ( "onClientRender", root, function () local x, y, z = getElementPosition ( getLocalPlayer() ); local dim = getElementDimension ( getLocalPlayer() ); for key, player in ipairs ( getElementsByType ( "player" ) ) do if ( ( isElement ( player ) ) and ( getElementDimension ( player ) == dim ) ) then local px, py, pz = getElementPosition ( player ); local distance = getDistanceBetweenPoints3D ( x, y, z, px, py, pz ); if ( isElementOnScreen ( player ) and ( distance < 20 ) ) then end end end end ); There you go, a small start.
  3. It's a shame that you even replied to him and also giving him directions where to learn how to remove something from a leaked script. Shame. on. you.
  4. It's easy, loop trough all the players that are around you, get the distance, if they are close AND on the screen ( isElementOnScreen or something like that ) then get it's position, add something to the Z axis and done. ^^
  5. Also know why it got solved? Because if you don't you'll make the same mistake again haha. ^^
  6. This can also be a way for you; local categories = { "Aircraft", "Bikes", "Boats", "Cars", "Emergency" } for _, r in ipairs ( categories ) do local row = guiGridListAddRow ( vehicleTypeGrid ) guiGridListSetItemText ( vehicleTypeGrid, row, 1, r, false, false ) end it might be even better because if you are going to add ( as example ) 50 categories, you don't have to create 50 rows of these; No offense,
  7. For every row ( line ) you want to insert, you have to create a new row. So for 'Aircraft', 'Bikes', 'Boats', you need 3 rows. So you got 5 different types, so you have to add 5 new rows.
  8. I took your code under a quick scope and made the other parts with some rubbish code, but it works for me this way; vehicleTypeGrid = guiCreateGridList ( 400, 200, 150, 300, false ); vehicleGrid = guiCreateGridList ( 600, 200, 250, 300, false ); column = guiGridListAddColumn( vehicleGrid, "Vehicle", 0.85 ) column = guiGridListAddColumn( vehicleTypeGrid, "Type", 0.85 ) row = guiGridListAddRow ( vehicleTypeGrid ) guiGridListSetItemText ( vehicleTypeGrid, row, 1, "Cars", false, false ) addEventHandler ( "onClientGUIClick", root, function() if ( source == vehicleTypeGrid ) then local row, col = guiGridListGetSelectedItem(source) if row and col and row ~= -1 and col ~= -1 then local category = guiGridListGetItemText(source, row, 1) guiGridListClear ( vehicleGrid ) if ( vehicleCategory [ category ] ) then for _, veh in ipairs ( vehicleCategory [ category ] ) do local row = guiGridListAddRow ( vehicleGrid ) guiGridListSetItemText ( vehicleGrid, row, 1, veh [ 2 ], false, false ) guiGridListSetItemData ( vehicleGrid, row, 1, veh [ 1 ] ) end end end end end )
  9. It's creating a random row instead of all the rows? Is that what you mean? edit; tested the code and it works normal for me buddy. How are you filling the 'vehicleTypeGrid' ? are you using the first item in the array for that?
  10. tosfera

    The last reply

    I love you :3 Some of them are kinda ugly though
  11. tosfera

    The last reply

    Ya, that's what I told the police but my dad did laugh when he saw this picture of me;
  12. tosfera

    The last reply

    they thought so too...
  13. tosfera

    The last reply

    who says we wont get them?u just need to kidnap them and tie them up... Get the van! GOT IT!
  14. tosfera

    The last reply

    So many girls in this topic that none of us will ever get cuz we are at our pc right noaw
  15. tosfera

    Scoreboard

    everything is possible, but just not with the exported functions. You should edit the source for that.
  16. Pickle Juice Overflow HDA
  17. I Obey People ( NO I DON'T. ) LMC
×
×
  • Create New...