Jump to content

HappyMeal

Members
  • Posts

    21
  • Joined

  • Last visited

Everything posted by HappyMeal

  1. Like this timer = {} --------------------------- -- Repair vehicle --------------------------- function repairVehicle() local vehicle = getPedOccupiedVehicle(g_Me) if vehicle then if not isTimer(timer[g_Me]) then -- local remaining, executesRemaining, totalExecutes = getTimerDetails(timer) timer[g_Me] = setTimer(function() timer[g_Me] = nil end,30000,1) server.fixVehicle(vehicle) local time_left_ms, executes_lesft, total_executes_count = getTimerDetails(timer[g_Me]) if (remaining and executesRemaining and totalExecutes) then outputChatBox("#006400• Vehicle successfully repaired", 0, 100, 0,true) else errMsg("• Please wait at least "..time_left_ms.." seconds before repairing again.") end end end end addCommandHandler('repair', repairVehicle) addCommandHandler('rp', repairVehicle)
  2. Like this timer = {} --------------------------- -- Repair vehicle --------------------------- function repairVehicle() local vehicle = getPedOccupiedVehicle(g_Me) if vehicle then if not isTimer(timer[g_Me]) then -- local remaining, executesRemaining, totalExecutes = getTimerDetails(timer) timer[g_Me] = setTimer(function() timer[g_Me] = nil end,30000,1) server.fixVehicle(vehicle) local time_left_ms, executes_lesft, total_executes_count = getTimerDetails(timer[g_Me]) if (remaining and executesRemaining and totalExecutes) then outputChatBox("#006400• Vehicle successfully repaired", 0, 100, 0,true) else errMsg("• Please wait at least "..time_left_ms.." seconds before repairing again.") end end end end addCommandHandler('repair', repairVehicle) addCommandHandler('rp', repairVehicle)
  3. To set in this script hex guiSetProperty(theImage, "ImageColours", "tl:FFD7D7D7 tr:FFD7D7D7 bl:FFD7D7D7 br:FFD7D7D7")
  4. Please tell me how to make rgb to hex and to set this.
  5. Explain me how to set it red.
  6. How it's possible to set color to a guiCreateStaticImage
  7. HappyMeal

    Images

    I already fixed it.
  8. Already fixed . Thx for help
  9. IM not oussezzzz!!!! Im not that dumbass
  10. HappyMeal

    Images

    No just to draw them in hud
  11. do you saw my parenthesis '' '' ? And im not dumbsezz
  12. HappyMeal

    Images

    Anyone please help me
  13. I'm Not oussez. I dont have that stupid enlish. "Me maked this script help me fixe it. Im pro than..."
  14. I'm asking for help not for unknown accusations.
  15. Hey i've made this code that checks players acl and it set to an setElementData and then to draw image bit it wont work. addEventHandler( 'onPlayerLogin', root, function ( ) local account = getPlayerAccount( source ) if account and not isGuestAccount( account ) then local accountName = getAccountName( account ); if isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Admin" ) ) then setElementData( source, "Classicon", tostring( ":experience/class/classicon_admin.png" ) ); elseif isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Moderator" ) ) then setElementData( source, "Classicon", tostring( ":experience/class/classicon_mod.png" ) ); else setElementData( source, "Classicon", tostring( ":experience/class/classicon_player.png" ) ); end end end );
  16. HappyMeal

    Images

    Only image for each level.
  17. HappyMeal

    Images

    Can someone help me make for each level to draw and image?
×
×
  • Create New...