SpcPewPew

Trader Vehicle Customs ReKey glitch

6 posts in this topic

I've tried searching to see if anyone else has had this same issue. Problem is when someone takes a spawn vehicle to the trader to put a pin on it they can't. Let me explain further, so they can, but the pop tabs isnt correct. If it says "1200 pop tabs" to rekey and they have 1200 on them it wont rekey. But if they had 1201 it will. Really weird. Thanks in advance

Share this post


Link to post
Share on other sites
Advertisement
23 hours ago, Jeffry said:

just looking at it, it looks like they uses Greater Than instead of Greater Than or Equal To
Edit: Make this file into an override and it is fixed. Simple change of the sign: https://pastebin.com/ftdN7twt

so i placed that text in an sqf and put it in the exile override folder of the mission pbo. what did i miss?

Share this post


Link to post
Share on other sites
22 minutes ago, SpcPewPew said:

so i placed that text in an sqf and put it in the exile override folder of the mission pbo. what did i miss?

Make sure the name of the file is the same as the top of that file: ExileClient_gui_vehicleRekeyDialog_event_onDropDownSelectionChanged
Then you need to add the custom code to your config. ExileClient_gui_vehicleRekeyDialog_event_onDropDownSelectionChanged = "<Path To File>\ExileClient_gui_vehicleRekeyDialog_event_onDropDownSelectionChanged.sqf";

Share this post


Link to post
Share on other sites
15 minutes ago, Jeffry said:

Make sure the name of the file is the same as the top of that file: ExileClient_gui_vehicleRekeyDialog_event_onDropDownSelectionChanged
Then you need to add the custom code to your config. ExileClient_gui_vehicleRekeyDialog_event_onDropDownSelectionChanged = "<Path To File>\ExileClient_gui_vehicleRekeyDialog_event_onDropDownSelectionChanged.sqf";

Yeah i did that. Had a brain fart. It works now thanks. Only problem i have now is when i click "reset" it says "failed to set pin. contact admin"

Share this post


Link to post
Share on other sites

That is another issue to be solved. Quite a few checks are done before that message is sent

These are the exact checks:

Spoiler

    _player = _sessionID call ExileServer_system_session_getPlayerObject;
    if (isNull _player) then
    {
        throw "Invalid player.";
    };
    if !(alive _player) then
    {
        throw "Dead player.";
    };
    _vehiclePinCode = _vehicle getVariable ["ExileAccessCode","000000"];
    if (_vehiclePinCode isEqualTo "000000") then
    {
        throw "Non-persistent vehicle."
    };
    _playerMoney = _player getVariable ["ExileMoney", 0];
    if (_rekeyCost > _playerMoney) then
    {
        throw "Player does not have enough money.";
    };

 

Edited by Jeffry

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.