Beiträge von ExEKiller001
-
-
Leider hat es auch nicht geklappt meine Version ist schon auf 7.1 von mysql ka was da der Fehler ist
Code
Alles anzeigen[Err] 1067 - Invalid default value for 'created_at' [Err] CREATE TABLE `pads` ( `id` int(11) NOT NULL, `slug` varchar(100) NOT NULL, `type` enum('support','projektleitung','entwicklung') NOT NULL, `title` varchar(255) NOT NULL, `done` enum('YES','NO') NOT NULL, `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; [Msg] Finished - Unsuccessfully --------------------------------------------------
-
Hallo an alle ich spiele mich seit 3h mit dem das ich es installiere auf meine Webspace aber irgendwie will das nicht bekomme immer beim sql den fehler
Code
Alles anzeigen-- -------------------------------------------------------- -- -- Tabellenstruktur für Tabelle `pads` -- CREATE TABLE `pads` ( `id` int(11) NOT NULL, `slug` varchar(100) NOT NULL, `type` enum('support','projektleitung','entwicklung') NOT NULL, `title` varchar(255) NOT NULL, `done` enum('YES','NO') NOT NULL, `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8 #1067 - Invalid default value for 'created_at'
Könnte mir jemand bitte bei der Installation helfen
-
wenn du auf jede tankstelle eine game logik setzten willst kannst du auch in dieser diesen code nehmen:
Ich glaube nicht das game logik ne gute Idee ist
you can use this to disable the fueling but I've never noticed a fuel station repair a vehicle..
Code
Alles anzeigen/* 32 pump locations on altis create triggers on pump locations to disable auto refueling for vehicles. */ VIR_fuelPump_locations = [ [9205.75,12112.2,-0.0487213], [11831.6,14155.9,-0.0342026], [12024.7,15830,-0.0298138], [12026.6,15830.1,-0.0342979], [12028.4,15830,-0.0388718], [9025.78,15729.4,-0.0206451], [9023.75,15729,-0.027153], [9021.82,15728.7,-0.0293427], [16750.9,12513.1,-0.0525188], [6798.15,15561.6,-0.0441475], [6198.83,15081.4,-0.0912437], [14181.6,16549.3,0.00917625], [5023.26,14429.6,-0.0978947], [5019.68,14436.7,-0.0114822], [4001.12,12592.1,-0.0966644], [17417.2,13936.7,-0.10652], [3757.14,13477.9,-0.0540285], [3757.54,13485.9,-0.010498], [16875.2,15469.4,0.0373325], [16871.7,15476.6,0.0102873], [8481.69,18260.7,-0.0266876], [15297.1,17565.9,-0.2838], [14221.4,18302.5,-0.0697174], [15781,17453.2,-0.285282], [19961.3,11454.6,-0.0349312], [19965.1,11447.6,-0.0483704], [5768.99,20085.7,-0.0189667], [21230.4,7116.56,-0.0604248], [20784.8,16665.9,-0.0521202], [20789.6,16672.3,-0.0213318], [23379.4,19799,-0.0544052], [25701.2,21372.6,-0.0774155] ]; //------------------------------------------------------------------------------- { _trg=createTrigger["EmptyDetector",_x]; _trg setTriggerArea[5,5,0,false]; _trg setTriggerActivation["NONE","PRESENT",false]; _trg setTriggerStatements["true", "{if (_x isKindOf 'Land_fs_feed_F') then {_x enableSimulation false; _x allowDamage false}} forEach nearestObjects [thisTrigger,[],10]", ""]; /* _mrk = createMarker [format["%1_fuelpump", floor (random 100000)], _trg]; _mrk setMarkerShape "ICON"; _mrk setMarkerType "hd_dot"; _mrk setMarkerColor "ColorRed"; */ } foreach VIR_fuelPump_locations;
here is a function to get any fuel pump location for any map. above code was for altis pump locations.
Code
Alles anzeigen/* put function in init file then execute with: call getFuelpumps; */ getFuelpumps = { _pos = getArray(configFile >> "CfgWorlds" >> worldName >> "centerPosition"); _blds=nearestobjects [_pos,["Land_fs_feed_F"], 20000]; _ary=[]; {_ary=_ary+[getpos _x]} foreach _blds; hint str _ary; copyToClipboard str _ary; };
auf englisch googlen hilft meistens
wo rufe ich das script auf ? wie gesagt bin noch ziemlich neu in sqf
danke für deine hilfe
-
Hallo an alle ich habe, das ein script wo sich der spieler die tankstelle kaufen kann und verwalten kann
mein Problem ist jetzt das ich nicht weiß, wie ich das Standard Tankstellen System deaktivieren kann
pump_service = false;
aber sobald ich auf die tanke zufahre tankt er automatisch auf
wie könnte ich das Problem lösen
MFG
-
Fehler wurde behoben danke an alle
-
RscMapControl zu Life_RscMapControl umbenennen
Leider hat das auch nicht geholfen
Code
Alles anzeigen//////////////////////////////////////////////////////////////////////////// ////// This HPP was created by Shinji`s GUI tool ////// //////////////////////////////////////////////////////////////////////////// class Sperrzone { idd = 12000; name = "Sperrzone"; onLoad = "uiNamespace setVariable ['Sperrzone', _this select 0];"; onUnLoad = "uiNamespace setVariable ['Sperrzone', nil];"; movingEnable = false; enableSimulation = true; class controlsBackground { class Background_1100: RscText { idc = 1100; text = ""; x = 0.328715 * safezoneW + safezoneX; y = 0.104752 * safezoneH + safezoneY; w = 0.625 * safezoneW; h = 0.74074 * safezoneH; ColorBackground[] = {0,0,0,0.686274}; }; }; class controls { class Small_1101: RscText { idc = 1101; text = ""; x = 0.067881 * safezoneW + safezoneX; y = 0.103826 * safezoneH + safezoneY; w = 0.222916 * safezoneW; h = 0.74074 * safezoneH; ColorBackground[] = {0,0,0,0.686274}; ColorText[] = {1,1,1,1}; }; class Small_1102: RscText { idc = 1102; text = "Vorhandene Sperrzonen"; x = 0.067881 * safezoneW + safezoneX; y = 0.103826 * safezoneH + safezoneY; w = 0.222916 * safezoneW; h = 0.041589 * safezoneH; ColorBackground[] = {0.749,0,0.149,1}; ColorText[] = {1,1,1,1}; }; class Small_1103: RscText { idc = 1103; text = "Sperrzone"; x = 0.328715 * safezoneW + safezoneX; y = 0.104752 * safezoneH + safezoneY; w = 0.625 * safezoneW; h = 0.042026 * safezoneH; ColorBackground[] = {0.749,0,0.149,1}; ColorText[] = {1,1,1,1}; }; class Life_RscMapControl_1104: RscMapControl { idc = 1104; x = 0.074548 * safezoneW + safezoneX; y = 0.168456 * safezoneH + safezoneY; w = 0.208333 * safezoneW; h = 0.222222 * safezoneH; maxSatelliteAlpha = 0.75; alphaFadeStartScale = 1.15; alphaFadeEndScale = 1.29; }; class Listbox_1105: RscListbox { idc = 1105; onLBSelChanged = "[] spawn life_fnc_lbChange"; x = 0.074756 * safezoneW + safezoneX; y = 0.401049 * safezoneH + safezoneY; w = 0.208394 * safezoneW; h = 0.368411 * safezoneH; ColorBackground[] = {0,0,0,0.698039}; ColorText[] = {1,1,1,1}; colorSelectBackground[] = {0,0,0,1}; colorSelect[] = {0,1,1,1}; }; class Button_1106: Life_RscButtonMenu { idc = 1106; text = "Abbrechen"; action = "closeDialog 0;"; x = 0.818715 * safezoneW + safezoneX; y = 0.775123 * safezoneH + safezoneY; w = 0.127916 * safezoneW; h = 0.059259 * safezoneH; ColorBackground[] = {0,0,0,0.619607}; ColorText[] = {1,1,1,1}; colorFocused[] = {0,1,1,1}; colorDisabled[] = {1,1,1,1}; }; class Structured_1107: RscText { idc = 1107; style = ST_MULTI; text = "Sperrzone einrichten oder vorhandene entfernen. Einfach durch einen Klick auf die Karte platzieren oder vorhandene durch die Liste löschen."; x = 0.335381 * safezoneW + safezoneX; y = 0.167715 * safezoneH + safezoneY; w = 0.61125 * safezoneW; h = 0.074074 * safezoneH; ColorBackground[] = {1,1,1,0}; ColorText[] = {1,1,1,1}; }; class Edit_1108: RscEdit { idc = 1108; style = ST_MULTI; text = "Name..."; x = 0.335356 * safezoneW + safezoneX; y = 0.294074 * safezoneH + safezoneY; w = 0.173554 * safezoneW; h = 0.029973 * safezoneH; ColorBackground[] = {1,1,1,0}; ColorText[] = {1,1,1,1}; colorSelection[] = {0,1,1,1}; colorDisabled[] = {1,1,1,1}; }; class Small_1109: RscText { idc = 1109; text = "Sperrzonen Name:"; x = 0.335381 * safezoneW + safezoneX; y = 0.263086 * safezoneH + safezoneY; w = 0.17375 * safezoneW; h = 0.031481 * safezoneH; ColorBackground[] = {0,0,0,0}; ColorText[] = {0.388235,0.580392,0.925490,1}; }; class Small_1111: RscText { idc = 1111; text = "Errichtet von:"; x = 0.553919 * safezoneW + safezoneX; y = 0.262131 * safezoneH + safezoneY; w = 0.173554 * safezoneW; h = 0.031481 * safezoneH; ColorBackground[] = {0,0,0,0}; ColorText[] = {0.388235,0.580392,0.925490,1}; }; class Structured_1113: RscText { idc = 1113; text = "Einsatzleitung"; x = 0.553443 * safezoneW + safezoneX; y = 0.292583 * safezoneH + safezoneY; w = 0.173554 * safezoneW; h = 0.029973 * safezoneH; ColorBackground[] = {1,1,1,0}; ColorText[] = {1,1,1,1}; }; class Button_1114: Life_RscButtonMenu { idc = 1114; text = "Löschen"; action = "[] spawn life_fnc_deleteMarker"; x = 0.075253 * safezoneW + safezoneX; y = 0.776816 * safezoneH + safezoneY; w = 0.207898 * safezoneW; h = 0.057208 * safezoneH; ColorBackground[] = {0,0,0,0.619607}; ColorText[] = {1,1,1,1}; colorFocused[] = {0,1,1,1}; colorDisabled[] = {1,1,1,1}; }; class Combobox_1114: RscCombo { idc = 4114; x = 0.335356 * safezoneW + safezoneX; y = 0.399266 * safezoneH + safezoneY; w = 0.173554 * safezoneW; h = 0.039976 * safezoneH; ColorBackground[] = {0.098039,0.098039,0.098039,0.666666}; ColorText[] = {1,1,1,1}; colorSelectBackground[] = {0,0,0,1}; colorSelect[] = {0,1,1,1}; }; class Structured_1115: RscText { idc = 1115; text = "Zonen Farbe"; x = 0.335356 * safezoneW + safezoneX; y = 0.360789 * safezoneH + safezoneY; w = 0.173554 * safezoneW; h = 0.031481 * safezoneH; ColorBackground[] = {1,1,1,0}; ColorText[] = {0.388235,0.580392,0.925490,1}; }; class Combobox_1116: RscCombo { idc = 1116; x = 0.553244 * safezoneW + safezoneX; y = 0.399266 * safezoneH + safezoneY; w = 0.173554 * safezoneW; h = 0.039976 * safezoneH; ColorBackground[] = {0.098039,0.098039,0.098039,0.666666}; ColorText[] = {1,1,1,1}; colorSelectBackground[] = {0,0,0,1}; colorSelect[] = {0,1,1,1}; }; class Structured_1117: RscText { idc = 1117; text = "Zonen Art"; x = 0.554286 * safezoneW + safezoneX; y = 0.360789 * safezoneH + safezoneY; w = 0.173554 * safezoneW; h = 0.031481 * safezoneH; ColorBackground[] = {1,1,1,0}; ColorText[] = {0.388235,0.580392,0.925490,1}; }; class Structured_1118: RscText { idc = 1118; text = "Schraffur"; x = 0.335356 * safezoneW + safezoneX; y = 0.474722 * safezoneH + safezoneY; w = 0.173554 * safezoneW; h = 0.031481 * safezoneH; ColorBackground[] = {1,1,1,0}; ColorText[] = {0.388235,0.580392,0.925490,1}; }; class ComboSchraffur: RscCombo { idc = 1119; x = 0.335356 * safezoneW + safezoneX; y = 0.5132 * safezoneH + safezoneY; w = 0.173554 * safezoneW; h = 0.039976 * safezoneH; ColorBackground[] = {0.098039,0.098039,0.098039,0.666666}; ColorText[] = {1,1,1,1}; colorSelectBackground[] = {0,0,0,1}; colorSelect[] = {0,1,1,1}; }; class Edit_1120: RscEdit { idc = 1120; style = ST_MULTI; text = "Nachricht"; x = 0.335489 * safezoneW + safezoneX; y = 0.630631 * safezoneH + safezoneY; w = 0.392012 * safezoneW; h = 0.117431 * safezoneH; ColorBackground[] = {1,1,1,0}; ColorText[] = {1,1,1,1}; colorSelection[] = {0,1,1,1}; colorDisabled[] = {1,1,1,1}; }; class Structured_1122: RscText { idc = 1122; text = "Nachricht an Spieler"; x = 0.335356 * safezoneW + safezoneX; y = 0.594652 * safezoneH + safezoneY; w = 0.173554 * safezoneW; h = 0.031481 * safezoneH; ColorBackground[] = {1,1,1,0}; ColorText[] = {0.388235,0.580392,0.925490,1}; }; class Button_1125: Life_RscButtonMenu { idc = 1125; text = "Marker auf Map setzen"; action = "[] spawn life_fnc_setMarker"; x = 0.335489 * safezoneW + safezoneX; y = 0.775123 * safezoneH + safezoneY; w = 0.175819 * safezoneW; h = 0.059259 * safezoneH; ColorBackground[] = {0,0,0,0.623529}; ColorText[] = {1,1,1,1}; colorFocused[] = {0,1,1,1}; colorDisabled[] = {1,1,1,1}; }; class Structured_1126: RscText { idc = 1126; text = "Höhe und Breite"; x = 0.554286 * safezoneW + safezoneX; y = 0.474722 * safezoneH + safezoneY; w = 0.173554 * safezoneW; h = 0.031481 * safezoneH; ColorBackground[] = {1,1,1,0}; ColorText[] = {0.388235,0.580392,0.925490,1}; }; class Edit_1127: RscEdit { idc = 1127; style = ST_MULTI; text = "Höhe"; x = 0.554286 * safezoneW + safezoneX; y = 0.511701 * safezoneH + safezoneY; w = 0.075276 * safezoneW; h = 0.040476 * safezoneH; ColorBackground[] = {1,1,1,0}; ColorText[] = {1,1,1,1}; colorSelection[] = {0,1,1,1}; colorDisabled[] = {1,1,1,1}; }; class Edit_1128: RscEdit { idc = 1128; style = ST_MULTI; text = "Breite"; x = 0.652615 * safezoneW + safezoneX; y = 0.511701 * safezoneH + safezoneY; w = 0.075276 * safezoneW; h = 0.040476 * safezoneH; ColorBackground[] = {1,1,1,0}; ColorText[] = {1,1,1,1}; colorSelection[] = {0,0,0,1}; colorDisabled[] = {0,0,0,1}; }; }; }; ////////////////////////////////////////////////////////////////////////////
-
Danke für deine hilfe, seit dem ich das eingebaut habe bekomme ich jetzt wo anders die Fehler
ich habe in den Dateien nichts verändert
-
Könnte mir jemand sagen, wo ich den Eintrag finden kann ich habe die Daten öfters angeschaut aber die Datei nicht gefunden
Codeif (((_curTarget getVariable "house_owner") select 0) != (getPlayerUID player)) then { _Btn1 ctrlEnable false; };
Muss das einfügen
Codeif((typeOf _curTarget) in ["Land_FuelStation_Build_F"]) then { _Btn4 ctrlSetText localize "STR_FUELING_FUEL_menu_h"; _Btn4 buttonSetAction " closeDialog 0; [] spawn life_fnc_openTanke; "; _Btn4 ctrlShow true; };
meine fn_houseMenu.sqf orginal noch nichts verendert
Code
Alles anzeigen#include "..\..\script_macros.hpp" /* File: fn_houseMenu.sqf Author: Bryan "Tonic" Boardwine Description: Building interaction menu */ #define Btn1 37450 #define Btn2 37451 #define Btn3 37452 #define Btn4 37453 #define Btn5 37454 #define Btn6 37455 #define Btn7 37456 #define Btn8 37457 #define Title 37401 private ["_display","_curTarget","_Btn1","_Btn2","_Btn3","_Btn4","_Btn5","_Btn6","_Btn7","_Btn8"]; disableSerialization; _curTarget = param [0,objNull,[objNull]]; if (isNull _curTarget) exitWith {}; //Bad target _houseCfg = [(typeOf _curTarget)] call life_fnc_houseConfig; if (count _houseCfg isEqualTo 0 && playerSide isEqualTo civilian) exitWith {}; if (!dialog) then { createDialog "pInteraction_Menu"; }; _Btn1 = CONTROL(37400,Btn1); _Btn2 = CONTROL(37400,Btn2); _Btn3 = CONTROL(37400,Btn3); _Btn4 = CONTROL(37400,Btn4); _Btn5 = CONTROL(37400,Btn5); _Btn6 = CONTROL(37400,Btn6); _Btn7 = CONTROL(37400,Btn7); _Btn8 = CONTROL(37400,Btn8); {_x ctrlShow false;} forEach [_Btn1,_Btn2,_Btn3,_Btn4,_Btn5,_Btn6,_Btn7,_Btn8]; life_pInact_curTarget = _curTarget; if (_curTarget in life_hideoutBuildings) exitWith { closeDialog 0; hint localize "STR_House_Hideout"; }; if (_curTarget isKindOf "House_F" && playerSide isEqualTo west) exitWith { private _vaultHouse = [[["Altis", "Land_Research_house_V1_F"], ["Tanoa", "Land_Medevac_house_V1_F"]]] call TON_fnc_terrainSort; private _altisArray = [16019.5,16952.9,0]; private _tanoaArray = [11074.2,11501.5,0.00137329]; private _pos = [[["Altis", _altisArray], ["Tanoa", _tanoaArray]]] call TON_fnc_terrainSort; if ((nearestObject [_pos,"Land_Dome_Big_F"]) isEqualTo _curTarget || (nearestObject [_pos,_vaultHouse]) isEqualTo _curTarget) then { _Btn1 ctrlSetText localize "STR_pInAct_Repair"; _Btn1 buttonSetAction "[life_pInact_curTarget] spawn life_fnc_repairDoor; closeDialog 0;"; _Btn1 ctrlShow true; _Btn2 ctrlSetText localize "STR_pInAct_CloseOpen"; _Btn2 buttonSetAction "[life_pInact_curTarget] call life_fnc_doorAnimate; closeDialog 0;"; _Btn2 ctrlShow true; } else { if (!isNil {_curTarget getVariable "house_owner"}) then { _Btn1 ctrlSetText localize "STR_House_Raid_Owner"; _Btn1 buttonSetAction "[life_pInact_curTarget] call life_fnc_copHouseOwner;"; _Btn1 ctrlShow true; _Btn2 ctrlSetText localize "STR_pInAct_BreakDown"; _Btn2 buttonSetAction "[life_pInact_curTarget] spawn life_fnc_copBreakDoor; closeDialog 0;"; _Btn2 ctrlShow true; _Btn3 ctrlSetText localize "STR_pInAct_SearchHouse"; _Btn3 buttonSetAction "[life_pInact_curTarget] spawn life_fnc_raidHouse; closeDialog 0;"; _Btn3 ctrlShow true; if (player distance _curTarget > 3.6) then { _Btn3 ctrlEnable false; }; _Btn4 ctrlSetText localize "STR_pInAct_LockHouse"; _Btn4 buttonSetAction "[life_pInact_curTarget] spawn life_fnc_lockupHouse; closeDialog 0;"; _Btn4 ctrlShow true; } else { closeDialog 0; }; }; }; if (!(_curTarget in life_vehicles) || isNil {_curTarget getVariable "house_owner"}) then { private _isHouse = false; if (isClass (missionConfigFile >> "Housing" >> worldName >> (typeOf _curTarget))) then { _Btn1 ctrlSetText localize "STR_pInAct_BuyHouse"; _Btn1 buttonSetAction "[life_pInact_curTarget] spawn life_fnc_buyHouse;"; _isHouse = true; } else { _Btn1 ctrlSetText localize "STR_pInAct_BuyGarage"; _Btn1 buttonSetAction "[life_pInact_curTarget] spawn life_fnc_buyHouse;"; }; _Btn1 ctrlShow true; if (((_curTarget getVariable "house_owner") select 0) != getPlayerUID player) then { _Btn1 ctrlEnable false; } else { _Btn8 ctrlSetText localize "STR_trade_sell_object"; _Btn8 buttonSetAction "[life_pInact_curTarget] call life_fnc_initSellObject"; _Btn8 ctrlShow true; }; if (_isHouse) then { if (getNumber (missionConfigFile >> "Housing" >> worldName >> (typeOf _curTarget) >> "canGarage") isEqualTo 1) then { _Btn2 ctrlSetText localize "STR_pInAct_GarageExt"; _Btn2 buttonSetAction "hint format [localize 'STR_pInAct_GarageExtNOTF',LIFE_SETTINGS(getNumber,'houseGarage_buyPrice')];"; _Btn2 ctrlShow true; }; }; } else { if (isClass (missionConfigFile >> "Garages" >> worldName >> (typeOf _curTarget))) then { _Btn1 ctrlSetText localize "STR_pInAct_SellGarage"; _Btn1 buttonSetAction "[life_pInact_curTarget] spawn life_fnc_sellHouse; closeDialog 0;"; _Btn1 ctrlShow true; if (((_curTarget getVariable "house_owner") select 0) != getPlayerUID player) then { _Btn1 ctrlEnable false; } else { _Btn8 ctrlSetText localize "STR_trade_sell_object"; _Btn8 buttonSetAction "[life_pInact_curTarget] call life_fnc_initSellObject"; _Btn8 ctrlShow true; }; _Btn2 ctrlSetText localize "STR_pInAct_AccessGarage"; _Btn2 buttonSetAction "[life_pInact_curTarget,""Car""] spawn life_fnc_vehicleGarage; closeDialog 0;"; _Btn2 ctrlShow true; _Btn3 ctrlSetText localize "STR_pInAct_StoreVeh"; _Btn3 buttonSetAction "[life_pInact_curTarget,player] spawn life_fnc_storeVehicle; closeDialog 0;"; _Btn3 ctrlShow true; } else { _Btn1 ctrlSetText localize "STR_pInAct_SellHouse"; _Btn1 buttonSetAction "[life_pInact_curTarget] spawn life_fnc_sellHouse; closeDialog 0;"; _Btn1 ctrlShow true; if (((_curTarget getVariable "house_owner") select 0) != getPlayerUID player) then { _Btn1 ctrlEnable false; } else { _Btn8 ctrlSetText localize "STR_trade_sell_object"; _Btn8 buttonSetAction "[life_pInact_curTarget] call life_fnc_initSellObject"; _Btn8 ctrlShow true; }; if (_curTarget getVariable ["locked",false]) then { _Btn2 ctrlSetText localize "STR_pInAct_UnlockStorage"; } else { _Btn2 ctrlSetText localize "STR_pInAct_LockStorage"; }; _Btn2 buttonSetAction "[life_pInact_curTarget] call life_fnc_lockHouse; closeDialog 0;"; _Btn2 ctrlShow true; if (isNull (_curTarget getVariable ["lightSource",objNull])) then { _Btn3 ctrlSetText localize "STR_pInAct_LightsOn"; } else { _Btn3 ctrlSetText localize "STR_pInAct_LightsOff"; }; _Btn3 buttonSetAction "[life_pInact_curTarget] call life_fnc_lightHouseAction; closeDialog 0;"; _Btn3 ctrlShow true; if (getNumber (missionConfigFile >> "Housing" >> worldName >> (typeOf _curTarget) >> "canGarage") isEqualTo 1 && {!(_curTarget getVariable ["blacklistedGarage",false])}) then { if (_curTarget getVariable ["garageBought",false]) then { _Btn4 ctrlSetText localize "STR_pInAct_SellGarage"; _Btn4 buttonSetAction "[life_pInact_curTarget] spawn life_fnc_sellHouseGarage; closeDialog 0;"; _Btn4 ctrlShow true; if (((_curTarget getVariable "house_owner") select 0) != (getPlayerUID player)) then { _Btn4 ctrlEnable false; }; _Btn5 ctrlSetText localize "STR_pInAct_AccessGarage"; _Btn5 buttonSetAction "[life_pInact_curTarget,""Car""] spawn life_fnc_vehicleGarage; closeDialog 0;"; _Btn5 ctrlShow true; _Btn6 ctrlSetText localize "STR_pInAct_StoreVeh"; _Btn6 buttonSetAction "[life_pInact_curTarget,player] spawn life_fnc_storeVehicle; closeDialog 0;"; _Btn6 ctrlShow true; } else { _Btn5 ctrlSetText localize "STR_pInAct_BuyGarage"; _Btn5 buttonSetAction "[life_pInact_curTarget] spawn life_fnc_buyHouseGarage; closeDialog 0;"; }; _Btn5 ctrlShow true; }; }; }; _var = _curTarget getVariable ["house_id",-1]; if(!(_var isEqualTo -1) && {playerSide isEqualTo CIVILIAN} && {_var isEqualTo ((group player) getVariable ["gang_hq_id",-1])}) then { _btn7 ctrlSetText "Gang HQ"; _btn7 buttonSetAction "0 call life_fnc_gang_hqupgrades"; _btn7 ctrlShow true; };
-
Gibt es eine Möglichkeit das ich immer wen jemand spawnt sich den Ausweis aussuchen muss, das er den Ausweis aussuchen muss
das nervt sorry habe auf alle 1 gesetzt das jeder nur 1 haben darf
wie könnte ich das ändern oder hat es jemand schon gemacht
-
So schaut meine player_inv aus
Code
Alles anzeigenclass controlsBackground { class pictureBackground: Life_RscPicture { idc = 2016; text = "inventory7.paa"; x = 0.23469 * safezoneW + safezoneX; y = 0.185 * safezoneH + safezoneY; w = 0.539062 * safezoneW; h = 0.559 * safezoneH; }; class Title: Life_RscTitle { colorBackground[] = {0, 0, 0, 0}; idc = -1; text = "$STR_PM_Title"; x = 0.1; y = 0.2; w = 0.8; h = (1 / 25); }; class moneyStatusInfo: Life_RscStructuredText { idc = 2015; sizeEx = 0.020; text = ""; x = 0.105; y = 0.30; w = 0.3; h = 0.6; }; class PlayersName: Title { idc = carry_weight; style = 1; text = ""; }; }; class controls { class itemHeader: Life_RscText { idc = -1; colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5}; text = "$STR_PM_cItems"; sizeEx = 0.04; x = 0.62; y = 0.26; w = 0.275; h = 0.04; }; class licenseHeader: Life_RscText { idc = -1; colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5}; text = "$STR_PM_Licenses"; sizeEx = 0.04; x = 0.336; y = 0.26; w = 0.275; h = 0.04; }; class moneySHeader: Life_RscText { idc = -1; colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5}; text = "$STR_PM_MoneyStats"; sizeEx = 0.04; x = 0.11; y = 0.26; w = 0.219; h = 0.04; }; class itemList: Life_RscListBox { idc = item_list; sizeEx = 0.030; x = 0.479; y = 0.179; w = 0.337; h = 0.4; }; class moneyEdit: Life_RscEdit { idc = 2018; text = "1"; sizeEx = 0.030; x = 0.168; y = 0.656; w = 0.29; h = 0.03; }; class NearPlayers: Life_RscCombo { idc = 2022; x = 0.168; y = 0.689; w = 0.29; h = 0.03; }; //Geldgeben class moneyDrop: Life_RscButtonMenu { idc = 2001; text = "$STR_Global_Give"; //colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5}; onButtonClick = "[] call life_fnc_giveMoney"; sizeEx = 0.025; x = 0.167; y = 0.727; w = 0.149; h = 0.069; colorBackground[] = {-1,-1,-1,-1}; colorBackgroundFocused[] = {1,1,1,0.12}; colorBackground2[] = {0.75,0.75,0.75,0.2}; color[] = {1,1,1,1}; colorFocused[] = {0,0,0,1}; color2[] = {0,0,0,1}; colorText[] = {1,1,1,1}; colorDisabled[] = {0,0,0,0.4}; }; class itemEdit: Life_RscEdit { idc = item_edit; text = "1"; sizeEx = 0.030; x = 0.62; y = 0.61; w = 0.295; h = 0.03; }; class iNearPlayers: Life_RscCombo { idc = 2023; x = 0.62; y = 0.65; w = 0.275; h = 0.03; }; class DropButton: Life_RscButtonMenu { idc = 2002; text = "$STR_Global_Give"; colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5}; onButtonClick = "[] call life_fnc_giveItem;"; x = 0.478; y = 0.727; w = 0.132; h = 0.065; }; class UseButton: Life_RscButtonMenu { text = "$STR_Global_Use"; colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5}; onButtonClick = "[] call life_fnc_useItem;"; x = 0.477; y = 0.654; w = 0.34; h = 0.065; }; class RemoveButton: Life_RscButtonMenu { text = "$STR_Global_Remove"; colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5}; onButtonClick = "[] call life_fnc_removeItem;"; x = 0.616; y = 0.727; w = 0.134; h = 0.065; }; /*class ButtonClose: Life_RscButtonMenu { idc = -1; //shortcuts[] = {0x00050000 + 2}; text = "$STR_Global_Close"; onButtonClick = "closeDialog 0;"; x = 0.1; y = 0.8 - (1 / 25); w = (6.25 / 40); h = (1 / 25); };*/ class ButtonSettings: Life_RscButtonMenu { idc = -1; //text = "$STR_Global_Settings"; onButtonClick = "[] call life_fnc_settingsMenu;"; x = -0.143;//Links nach rechts y = 0.26;//H w = 0.29;//Breite Button h = 0.09;//H von Button colorBackground[] = {-1,-1,-1,-1}; colorBackgroundFocused[] = {1,1,1,0.12}; colorBackground2[] = {0.75,0.75,0.75,0.2}; color[] = {1,1,1,1}; colorFocused[] = {0,0,0,1}; color2[] = {0,0,0,1}; colorText[] = {1,1,1,1}; colorDisabled[] = {0,0,0,0.4}; }; class ButtonMyGang: Life_RscButtonMenu { idc = 2011; //text = "$STR_PM_MyGang"; onButtonClick = "if (isNil ""life_action_gangInUse"") then {if (isNil {(group player) getVariable ""gang_owner""}) then {createDialog ""Life_Create_Gang_Diag"";} else {[] spawn life_fnc_gangMenu;};};"; x = -0.143;//Links nach rechts y = 0.34;//H w = 0.29;//Breite Button h = 0.09;//H von Button colorBackground[] = {-1,-1,-1,-1}; colorBackgroundFocused[] = {1,1,1,0.12}; colorBackground2[] = {0.75,0.75,0.75,0.2}; color[] = {1,1,1,1}; colorFocused[] = {0,0,0,1}; color2[] = {0,0,0,1}; colorText[] = {1,1,1,1}; colorDisabled[] = {0,0,0,0.4}; }; class ButtonMarket : Life_RscButtonMenu { idc = 3025; //text = ""; onButtonClick = "createDialog ""life_dynmarket_prices"";"; x = -0.143;//Links nach rechts y = 0.43;//H w = 0.29;//Breite Button h = 0.09;//H von Button colorBackground[] = {-1,-1,-1,-1}; colorBackgroundFocused[] = {1,1,1,0.12}; colorBackground2[] = {0.75,0.75,0.75,0.2}; color[] = {1,1,1,1}; colorFocused[] = {0,0,0,1}; color2[] = {0,0,0,1}; colorText[] = {1,1,1,1}; colorDisabled[] = {0,0,0,0.4}; }; class Licenses_Menu : Life_RscControlsGroup { idc = -1; w = 0.776; h = 0.62; x = 0.34; y = 0.178; class Controls { class Life_Licenses: Life_RscStructuredText { idc = 2014; sizeEx = 0.020; text = ""; x = 0.496; y = 0; w = 0.27; h = 0.654; }; }; }; class ButtonGangList: Life_RscButtonMenu { idc = 2012; text = "$STR_PM_WantedList"; //onButtonClick = "[] call life_fnc_wantedMenu"; onButtonClick = "closeDialog 0 ; [0] remoteExec [""max_interpol_fnc_getInterpol"",2]"; x = 0.655; y = 0.901; w = (6.25 / 40); h = (1 / 25); }; class ButtonKeys: Life_RscButtonMenu { idc = 2013; //text = "$STR_PM_KeyChain"; onButtonClick = "createDialog ""Life_key_management"";"; x = -0.143;//Links nach rechts y = 0.6;//H w = 0.29;//Breite Button h = 0.09;//H von Button colorBackground[] = {-1,-1,-1,-1}; colorBackgroundFocused[] = {1,1,1,0.12}; colorBackground2[] = {0.75,0.75,0.75,0.2}; color[] = {1,1,1,1}; colorFocused[] = {0,0,0,1}; color2[] = {0,0,0,1}; colorText[] = {1,1,1,1}; colorDisabled[] = {0,0,0,0.4}; }; class ButtonCell: Life_RscButtonMenu { idc = 2014; text = ""; onButtonClick = "createDialog ""Life_cell_phone"";"; x = -0.143; y = 0.172; w = 0.29; h = 0.09; colorBackground[] = {-1,-1,-1,-1}; colorBackgroundFocused[] = {1,1,1,0.12}; colorBackground2[] = {0.75,0.75,0.75,0.2}; color[] = {1,1,1,1}; colorFocused[] = {0,0,0,1}; color2[] = {0,0,0,1}; colorText[] = {1,1,1,1}; colorDisabled[] = {0,0,0,0.4}; }; class ButtonAdminMenu: Life_RscButtonMenu { idc = 2021; text = "$STR_PM_AdminMenu"; onButtonClick = "closeDialog 0; createDialog ""life_admin_menu"";"; x = 0.49; y = 0.901; w = (6.25 / 40); h = (1 / 25) }; /*class ButtonSyncData: Life_RscButtonMenu { idc = -1; //shortcuts[] = {0x00050000 + 2}; text = "$STR_PM_SyncData"; onButtonClick = "[] call SOCK_fnc_syncData;"; x = 0.1; y = 0.805; w = (6.25 / 40); h = (1 / 25); };*/ class ButtonSperrzone: Life_RscButtonMenu { idc = 1022; //shortcuts[] = {0x00050000 + 2}; text = "Sperrzonen"; onButtonClick = "[] call life_fnc_openArea"; x = 0.15; y = 0.901; w = (6.25 / 40); h = (1 / 25); }; class Level_Button : Life_RscButtonMenu { idc = -1; text = ""; onbuttonclick = "closeDialog 0; createDialog ""TTM_GUI_RscDisplayTalentOverview"";"; x = -0.143;//Links nach rechts y = 0.51;//H w = 0.29;//Breite Button h = 0.09;//H von Button colorBackground[] = {-1,-1,-1,-1}; colorBackgroundFocused[] = {1,1,1,0.12}; colorBackground2[] = {0.75,0.75,0.75,0.2}; color[] = {1,1,1,1}; colorFocused[] = {0,0,0,1}; color2[] = {0,0,0,1}; colorText[] = {1,1,1,1}; colorDisabled[] = {0,0,0,0.4}; } class aapps_notruf : Life_RscButtonMenu { idc = 4111; text = "Notrufverwaltung"; onButtonClick = "0 call life_notruf_start"; x = 0.32; y = 0.901; w = (6.25 / 40); h = (1 / 25); }; }; };
-
Suche Hilfe bei Z-Menu zu verändern alles was ich probiert habe hat leider nicht funktioniert
Bzw die Positionen habe ich verschoben aber es funktioniert nicht ich kann keine Items weitergeben oder sie benutzen
wenn es jemanden gibt der mir helfen kann würde auch donaten als ein kleines Dankeschön
-
werde ich morgen testen
-
-
Hi Shinji
Welche große ist es am besten das ich es nehme habe das es dem original kommt ich bin kein Grafiker ich kenne mich da 0 aus
und Shinji könntest du auf meine PM antworten wegen den GUI Editor bitte danke
-
Hallo Killergnom die bilder sind in der 1920 x 1080 welche Größe ist de am besten
-
Hallo an alle ich hoffe ihr könnt mir helfen
ich habe mir ein Z-Menu erstellen lassen bzw. die Grafik
jetzt habe ich das Problem wenn ich das Bild von psd zu png und dann paa umwandle ist das Bild unsichtbar, was mache ich falsch in Texture Viewer
-
Ich habe das Script geschafft zu installieren jetzt habe ich das Problem das Dienstausweis nicht angezeigt wird und Adminausweis nicht angezeigt wird kann mir einer da helfen
MFG
-
Funktioniert das script schon ohne dupe?
-
Aber ich sehe den fehler einfach nicht habe das 1 zu 1 alles so eingebaut wie es da steht und 5 mal abgeglichen
Rom deepofficer71 Gibt es support über TeamViewer