Jump to content

ItsLega

Members
  • Content Count

    37
  • Joined

  • Last visited

Community Reputation

4 Neutral

4 Followers

About ItsLega

  • Rank
    Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. for "_i" from 0 to 5 do { [_metro1, _metro2, _metro3, _metro4] apply { _x ctrlShow true; uiSleep 0.2; _x ctrlShow false; }; };
  2. Your servers might have a vendetta against each other, but this is not the place for it. I hope this whole post gets deleted.
  3. you can set it to check for house type.
  4. run this locally when looking at one of the building, this will let us know the selection names they are using for the doors. diag_log (selectionNames cursorObject) select {((player distance (cursorObject modelToWorld (cursorObject selectionPosition _x))) <= 5)}
  5. The only thing I had an issue with this was the structuredText (CONTROL(2800,2803)) ctrlSetStructuredText parseText format [ (localize "STR_Shop_Veh_UI_RetrievalP")+ " <t color='#8cff9b'>$%1</t><br/> " +(localize "STR_Shop_Veh_UI_SellP")+ " <t color='#8cff9b'>$%2</t><br/> " +(localize "STR_Shop_Veh_UI_MaxSpeed")+ " <t color='#8cff9b'>%3 km/h</t><br/> " +(localize "STR_Shop_Veh_UI_HPower")+ " <t color='#8cff9b'>%4</t><br/> " +(localize "STR_Shop_Veh_UI_PSeats")+ " <t color='#8cff9b'>%5</t><br/> " +(localize "STR_Shop_Veh_UI_Trunk")+ " <t color='#8cff9b'>%6</t><br/> " +(localize "STR_Shop_Veh_UI_Fuel")+ " <t color='#8cff9b'>%7</t> " +(localize "STR_Shop_Veh_UI_Color")+ " <t color='#8cff9b'>%8</t><br/> Price to Insure: <t color='#8cff9b'>$%9</t><br/> Insured: <t color='#8cff9b'>%10</t><br/> ", [_retrievePrice] call life_fnc_numberText, [_sellPrice] call life_fnc_numberText, (_vehicleInfo select 8), (_vehicleInfo select 11), (_vehicleInfo select 10), if (_trunkSpace isEqualTo -1) then {"None"} else {_trunkSpace}, (_vehicleInfo select 12), _vehicleColor, [_insurancePrice] call life_fnc_numberText, if (_insurance == 1) then {"<t color='#8cff9b'>true</t>"} else {"<t color='#FF0000'>false</t>"}, (_vehicleInfo select 9) ]; This is working for me.
  6. Posting a link to your logs would be a good place to start, server + client.
  7. You could open the ymenu in the edeneditor, and site the image to the background of the menu in there.
  8. No. Me Streaming has litteraly nothing to do with you.
  9. @Haduuken can you rewrite the tutorial using codeblocks and not quotes, it seems quotes keeps leaving hidden characters, believe its an issue with ipb.
  10. did you even read mine ? xD
  11. player addEventHandler ["GetInMan", { params ["_unit", "_role", "_vehicle", "_turret"]; if (_role isEqualTo "driver") then { for "_i" from 0 to 1 step 0 do { private _usageMultiplier = 10000; if !((driver (vehicle player)) isEqualTo player) exitWith {}; if (isNull (objectParent player)) exitWith {}; if !(isEngineOn (vehicle player)) exitWith {}; private _consumption = ((speed (vehicle player)) / _usageMultiplier) max 0.002; (vehicle player) setFuel ((fuel (vehicle player)) - _consumption); if (fuel _vehicleToFuel < 0.2 && fuel _vehicleToFuel > 0.18) then { hint "Your gas tank is empty. Hurry to the next gas station!"; } else { if (fuel _vehicleToFuel < 0.03) then { hint "I hope you can run - because you just ran out of gas!"; }; }; uiSleep 2; }; }; }]; this is what i would use.
  12. why are you doing a while true with no exit ? why would you not just start this on getin event handler ?
  13. @David I found another issue, you dont want the while{true} loop on the update. you want it on the hudSetup/.
  14. The issue is he hasnt go script_macros at the top of hudupdate Edit: Also you dont want to call the setup from the update. it will restart the loop. Edit 2: Working fn_hudUpdate.sqf #include "..\..\script_macros.hpp" /* File: fn_hudUpdate.sqf Author: Daniel Stuart Description: Updates the HUD when it needs to. # # Edited: David # */ while{true}do { if (isNull (uiNamespace getVariable ['playerHUD',displayNull])) then {cutRsc ["playerHUD", "PLAIN", 2, false];}; LIFEctrl(1101) progressSetPosition (life_hunger / 100); LIFEctrl(1103) progressSetPosition (1 - (damage player)); LIFEctrl(1102) progressSetPosition (life_thirst / 100); LIFEctrl(1100) progressSetPosition (1 - (getFatigue player)); //Text LIFEctrl(1107) ctrlSetStructuredText parseText format["<t>%1</t>", round(((1 - (getFatigue player)) * 100))]; LIFEctrl(1105) ctrlSetStructuredText parseText format["<t>%1</t>", round((life_thirst / 100) * 100)]; LIFEctrl(1106) ctrlSetStructuredText parseText format["<t>%1</t>", round((life_hunger / 100) * 100)]; LIFEctrl(1104) ctrlSetStructuredText parseText format["<t>%1</t>", round(((1 - (damage player)) * 100))]; }; Working fn_hudSetup.sqf #include "..\..\script_macros.hpp" /* File: fn_hudSetup.sqf Author: Daniel Stuart Description: Sets up the HUD. # # Edited: David # */ disableSerialization; if (isNull (uiNamespace getVariable ['playerHUD',displayNull])) then {cutRsc ["playerHUD", "PLAIN", 2, false];}; []call life_fnc_hudUpdate; [] spawn { sleep 1; []call life_fnc_hudUpdate; };
×
×
  • Create New...