Jump to content

manve1

Retired Staff
  • Posts

    1,283
  • Joined

  • Last visited

Everything posted by manve1

  1. manve1

    Problem

    I have a problem, when i change my name, it doesn't update the gridlist function updateList(old, new) if eventName == "onClientPlayerJoin" then local i = guiGridListAddRow(aGrid) guiGridListSetItemText(aGrid, i, aColumn, getPlayerName(source):gsub("#%x%x%x%x%x%x", ""), false, false) elseif eventName == "onClientPlayerQuit" then for i=0, guiGridListGetRowCount(aGrid) do if guiGridListGetItemText(aGrid, i, aColumn) == getPlayerName(source):gsub("#%x%x%x%x%x%x", "") then guiGridListRemoveRow(aGrid, i) end end elseif eventName == "onClientPlayerChangeNick" then for i=0, guiGridListGetRowCount(aGrid) do if guiGridListGetItemText(aGrid, i, aColumn) == old then guiGridListSetItemText(aGrid, i, aColumn, new, false, false) end end end end addEventHandler("onClientPlayerJoin", root, updateList) addEventHandler("onClientPlayerQuit", root, updateList) addEventHandler("onClientPlayerChangeNick", root, updateList) P.S. I didn't make this, i had help from one of members from community ( can't remember who )
  2. manve1

    Question?

    I know functions, but i don't get how to make them i even went through other scripts to find it out, still no luck
  3. manve1

    Question?

    How could i make that when i click on a button, the writing on it changes? For Example: I click on a button called "Freeze", then it becomes as "Unfreeze", when i click on it again it becomes "Freeze" .. i think you got the idea
  4. I think you have to make like when a player hits 200letters ( more or less ), an scroll bar appears ( you chose place ) to scroll down and up. I'm thinking something like that.
  5. I didn't say that, but math.ceil is better for me
  6. I just needed the main numbers, didn't want the decimal or numbers after it.
  7. manve1

    Bit of help :)

    Yeh, i see what u changed.
  8. manve1

    Bit of help :)

    Still leaves it as a number. When i exit the car, i can see that the label changes, then it changes back to the health of vehicle
  9. manve1

    Help

    yep, worked, ty
  10. I tried making that when a player exits a vehicle, a certain label gets set to nil ( by nill i mean like to what it was when created ) vehHealth = guiCreateLabel( 0.48, 0.965, 0.3, 0.1, 'Vehicle Health: N/A', true ) function vehHealthIThink() local vehicleHealth = getPedOccupiedVehicle ( localPlayer ) if ( vehicleHealth ) then setTimer( function() local vehicleHlt = getElementHealth ( vehicleHealth ) guiSetText ( vehHealth, 'Vehicle Health: ' .. math.ceil( vehicleHlt ) ) end, 50, 0 ) end end addEventHandler ( "onClientVehicleEnter", root, vehHealthIThink ) addEventHandler ( "onClientVehicleExit", root, function() guiSetText ( vehHealth, 'Vehicle Health: ' ) end )
  11. manve1

    Help

    only error i get is this: ERROR: attempt to concatenate local 'serial' ( a boolean value )
  12. manve1

    Question

    but i can't be bothered
  13. manve1

    Question

    Exactly that, too bad its not possible
  14. manve1

    Question

    Would it be possible to move players chat down ? I don't need much, just a bit only like by 5 or 10
  15. I get a problem when i get element health and put it on a label, it always gives me like: 82.57222719 How can i get rid of the numbers after decimal?
  16. manve1

    Help

    boolean value
  17. Thanx Solidsnake, but how do i disable the current HUD?
  18. manve1

    Help

    I do look at it, i try few times, i ask help when i never used them and i fail at them, or with something that would be impossible to make for me
  19. Still don't get what argument i need to pass through D:
×
×
  • Create New...