dekela

Set PIN on hot wire

5 posts in this topic

I have a HC server with no traders, so no way of changing a PIN on vehicles. What i am trying to do is have the option to set a new PIN on successful hot wire. This is what i have tried, get the option to set pin on hot wire success, but new pin does not save to database. any ideas

thanks

Spoiler

/**
 * ExileClient_object_lock_network_hotwireLockRequest
 *
 * Exile Mod
 * exile.majormittens.co.uk
 * © 2015 Exile Mod Team
 *
 * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. 
 * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
 */
 
private["_vehicleObject","_objectNetId"];
_vehicleObject = objectFromNetId (_this select 0);
_object = cursorTarget;
_objectNetId = netId _object;
if (local _vehicleObject) then
{
["InfoTitleOnly", ["Please enter the new PIN!"]] call ExileClient_gui_toaster_addTemplateToast;
_newPinCode = 4 call ExileClient_gui_keypadDialog_show;
if(_newPinCode isEqualTo "")exitWith {"Exiting with no new PIN." call ExileClient_util_log;};
["rekeyVehicleRequest",[_vehicleObject,_newPinCode]] call ExileClient_system_network_send;
};
 

 

Share this post


Link to post
Share on other sites
Advertisement

Not sure if you can call this from client, in which case you will need to pv it to server somehow

[_vehicleObject, _newPinCode] call ExileServer_object_vehicle_database_resetCode;

 

Share this post


Link to post
Share on other sites

Good morning, I'm looking for a command line to put on my flag.

Style:

class StealFlag: ExileAbstractAction
{
title = "Steal Flag";
condition = "((ExileClientInteractionObject getvariable ['ExileFlagStolen', 1]) isEqualTo 0)";
action = "['StealFlag', _this select 0] call ExileClient_action_execute";
};

But to change the code of the vehicles please.

Share this post


Link to post
Share on other sites

class SetPin: ExileAbstractAction
{
title = "Reset PinCode";
condition = "((ExileClientInteractionObject getvariable ['ExileNewPinCode', 1]) isEqualTo 0)";
action = "
[_vehicleObject, _newPinCode] call ExileServer_object_vehicle_database_resetCode";
};

these good like that?

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.