Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

4 Neutral


About ItsLega

  • Rank

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. 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)}
  4. 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.
  5. Posting a link to your logs would be a good place to start, server + client.
  6. You could open the ymenu in the edeneditor, and site the image to the background of the menu in there.
  7. No. Me Streaming has litteraly nothing to do with you.
  8. @Haduuken can you rewrite the tutorial using codeblocks and not quotes, it seems quotes keeps leaving hidden characters, believe its an issue with ipb.
  9. did you even read mine ? xD
  10. 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.
  11. why are you doing a while true with no exit ? why would you not just start this on getin event handler ?
  12. @David I found another issue, you dont want the while{true} loop on the update. you want it on the hudSetup/.
  13. 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...

Important Information

By using this site, you agree to our Terms of Use.