Welcome to Altis Life RPG

Register now to gain access to all of our features.
Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Note that you can now sign-in with your Steam account.

This message will be removed once you have signed in.

  • Announcements

    • Rozo

      Donations   09/18/2016

        We've added a donation block on the right side. All of those donation goes directly to the developer of Altis Life mod ( currently BoGuu ). None of that money is used to maintain the forum. In the future we might add a donation button to support the forum, but for now we want to encourage the developer because they went through a lot. To discuss this topic - Here
    • Shakir Darwish

      IS YOUR SERVER BROKEN SINCE 1.64 UPDATE?   09/22/2016

      If your server is broken since 1.64 go check this link thanks. https://github.com/AsYetUntitled/Framework/issues/104
    • Rozo

      Sad Day   01/04/2017

      Good evening community of Altis Life RPG, Today was a sad day. We learned the hard way that one of the helper was using his status and visibility on the forum to do things i wouldn't imagine.  We were warned about this user in the beginning, we talked about his behavior and he said that they were things of the past. We were fooled.
      Unfortunately, he fooled other community members by selling stolen content and impersonating his role as a developer in another community. Here's a remember of one of the rules on our forum, No selling scripts, snippets, or services.   So if anyone come across someone who's selling his services, scripts or whatever, Report them. Especially if it's coming from an Helper, Mod, Admin. No one in the staff should ask for money, we already mention this when we reopened the forum and that rule is here to stay.

      We can't be sorry enough for what happen here, for any harm it as caused among other communities, for money that shouldn't been spent and we truly hope this doesn't happen again.

      As for the user in question, he is now banned from our forum and discord and we wish to never cross his path again.
        If there's anything we can do hit us on Discord or send a message to an admin.
      Thanks, Rozo.


  • Content count

  • Joined

  • Last visited

Everything posted by Fox059

  1. I'm trying to run script on my mission, I'm new to programming And I have some questions. In the editor It works when I call the scripts. mission.sqm editor class Item3 { dataType="Object"; class PositionInfo { position[]={2727.9951,27.003584,1274.358}; angles[]={6.2481914,1.0143853,0.11449359}; }; side="Empty"; flags=4; class Attributes { init="nul = [this,45,60,{ [] execVM ""scriptText.sqf""; }] execVM ""scriptCont.sqf"";"; }; id=10; type="Target_PopUp_Moving_90deg_Acc1_F"; }; When I try to call the same script in my mission altisLife. Does not work. mission.sqm - AltisLife class Item876 { dataType="Object"; class PositionInfo { position[]={2727.9951,27.003584,1274.358}; angles[]={6.2481914,1.0143853,0.11449359}; }; side="Empty"; flags=4; class Attributes { init="this addAction[45,60,""life_fnc_scriptText""]; this addAction[""life_fnc_scriptCont""];"; }; id=10; type="Target_PopUp_Moving_90deg_Acc1_F"; }; I have in core\scripts ( fn_scriptText.sqf ) and ( fn_scriptCont.sqf ) I also have in Functions.hpp class scripts { file = "core\scripts"; class scriptText {}; class scriptCont {}; }; I believe the error is in init="nul = [this,45,60,{ [] execVM ""scriptText.sqf""; }] execVM ""scriptCont.sqf"";"; From my mission, But I still do not understand how to call these scripts. Sorry for my English, Any help, I'm grateful.
  2. Help - Doubt with script

    I'm trying to understand knowledge and learning. I am creating any kind of simple script I would like to know how I can call any script To run on the server And how to call any script to run on the client. I appreciate your attention, Thank you.
  3. Help - Doubt with script

    Thank you. I still can not get the expected result, With my scripts. How can I get each client to run the script ( fn_scriptText.sqf ).

    Sorry, I did not understand how to do this process.
  5. [ Help Simple_UI ] Stamina

    After the tutorial, Simple_UI per - CptGooch. I added this in my code " fn_hudUpdate.sqf " after : //Update Money _money ctrlSetPosition [safeZoneX+safeZoneW-0.090,safeZoneY+safeZoneH-0.374]; if(_cash >= 1000000) then { _cash = round(_cash / 1000000); _money ctrlSetText format["%1", format["%1 M",[_cash] call life_fnc_numberText]]; } else { if(_cash >= 100000) then { _cash = round(_cash / 1000); _money ctrlSetText format["%1", format["%1 K",[_cash] call life_fnc_numberText]]; } else { _cash = round _cash; _money ctrlSetText format["%1", format["%1",[_cash] call life_fnc_numberText]]; }; }; _money ctrlCommit 0; that: //Update fatigue _ctrlSta ctrlSetPosition [safeZoneX+safeZoneW-0.090,safeZoneY+safeZoneH-0.322]; _ctrlSta ctrlSetText format ["%1%2", round((1 - (getFatigue player)) * 100), "%"]; _ctrlSta ctrlCommit 0; It works, but only works when, Some others are updated, such as. food , water , health, weight, money. Not updated automatically when I'm running with a player. Any idea where I can call the update for my Fatigue. It looks like the tutorial topic has been deleted. Sorry about my English.
  6. [TUTORIAL] New Spawn Menu Layout

    Any idea. my background Black, Not shown In the menu in respawn.
  7. [ Help Simple_UI ] Stamina

    Here are my files, version 5x UI.rar
  8. [ Help Simple_UI ] Stamina

    I'm too young to create a tutorial, If you want, I can share my script here. I do not know if I can share in this same topic
  9. [ Help Simple_UI ] Stamina

    Ok Solved. If someone who followed the tutorial is interested in " fn_hudUpdate.sqf " to replace private["_ui","_food","_water","_health","_weight","_money","_cash"]; per private["_ui","_food","_water","_health","_weight","_money","_cash","_ctrlSta"]; Below _money = _ui displayCtrl 23525; Add _ctrlSta = _ui displayCtrl 23550; Below _money ctrlCommit 0; Add //Update Fatigue _ctrlSta ctrlSetPosition [safeZoneX+safeZoneW-0.090,safeZoneY+safeZoneH-0.322]; _ctrlSta ctrlSetText format ["%1%2", round((1 - (getFatigue player)) * 100), "%"]; _ctrlSta ctrlCommit 0; in " fn_hudSetup.sqf " Added at the end [] spawn { private ["_fat"]; for "_i" from 0 to 1 step 0 do { _fat = getFatigue player; waitUntil {!((getFatigue player) isEqualTo _fat)}; [] call life_fnc_hudUpdate; }; }; in " dialog\hud_stats.hpp" Below class moneytext { type=0; idc=23525; style=0; x=-1; y=-1; w=0.3; h=0.05; sizeEx=0.03; size=1; font="PuristaSemibold"; colorBackground[]={0,0,0,0}; colorText[] = { 1 , 1 , 1 , 1 }; shadow=1; text=""; }; Add class fatingtext { type=0; idc=23550; style=0; x=-1; y=-1; w=0.3; h=0.05; sizeEx=0.03; size=1; font="PuristaSemibold"; colorBackground[]={0,0,0,0}; colorText[] = { 1 , 1 , 1 , 1 }; shadow=1; text=""; }; Download UI. UI.paa
  10. [TUTORIAL] Cop / Medic barriers via menu 4.0+

    I'm happy with your help, thank you.
  11. [TUTORIAL] Cop / Medic barriers via menu 4.0+

    That way, it will prevent the smaller police officer from opening the menu, right? I would just like to prevent the police level from creating certain objects
  12. [TUTORIAL] Cop / Medic barriers via menu 4.0+

    life_barrier_active = false; life_barrier_activeObj = ObjNull; life_placeables = [ ["Cone","RoadCone_F", { "life_coplevel", "SCALAR", 3 } ], ["Cone With light","RoadCone_L_F"], ["Wooden barrier","RoadBarrier_F"], ["Wooden barrier with light","RoadBarrier_small_F"], ["Orange plastic barrier","PlasticBarrier_03_orange_F"], ["Concrete barrier","Land_CncBarrier_stripes_F"], ["Portable light","Land_PortableLight_single_F"], ["Portable Light (Double)","Land_PortableLight_double_F"] ]; life_bar_placey = []; It did not work, maybe I'm wrong in the code. No errors in RPT
  13. [TUTORIAL] Cop / Medic barriers via menu 4.0+

    Thanks, but it did not work for me.
  14. Thanks, it worked perfect now.
  15. Great tutorial Perfect works in v 5.0. Can someone tell me How to hit the player whose key to use.
  16. [TUTORIAL] Cop / Medic barriers via menu 4.0+

    How can I set cop level Exemple. ["Cone", "RoadCone_F", coplevel >2]