Mezo

[Updated] Claim Non-Persistent Vehicles

232 posts in this topic

Posted (edited)

Allows players to claim server-spawned non-persistent vehicles with a codelock.

Download

 

Spoiler

pixel_pepe_by_cucumberhorse-d96n8iz.gif

Drop ClaimVehicles_Server.pbo into @ExileServer/addons folder.

Drop ClaimVehicles_Client Folder into mpmission/Exile.MAPNAME

Open init.sqf or initplayerLocal.sqf and add the following.


[] execVM "ClaimVehicles_Client\ClaimVehicles_Client_init.sqf";

Open your missionfile config.cpp and find class "CAR"

Spoiler

61e6928cc0.png

Add the contents of EXAMPLE_Config.cpp as a Interaction class  look at the screenshot. Repeat this step for Class "AIR" and Class tank if you have it.

Donezo!

^ Install Instructions ^

 

Note: This was tested with Vanilla Exile and Arma3 Vehicles. There's no reason why it shouldn't work with 3rd party vehicle mods, But if it doesn't I won't be making it work xD

Edited by Taylor Swift
30 people like this

Share this post


Link to post
Share on other sites

Reserverd :rock:

Share this post


Link to post
Share on other sites
Advertisement

If you have virtual garage you already have CfgNetworkMessages defined so  you will need to put this

    class InsertClaimedVehicle
    {
        module = "ClaimVehicle";
        parameters[] = {"STRING","STRING"};
    };

at the bottom of config.cpp

Spoiler

class CfgNetworkMessages {
    class GetStoredVehiclesRequest
    {
        module = "VirtualGarage";
        parameters[] = {"STRING"};
    };

    class GetStoredVehiclesResponse
    {
        module = "VirtualGarage";
        parameters[] = {"ARRAY"};
    };

    class RetrieveVehicleRequest
    {
        module = "VirtualGarage";
        parameters[] = {"STRING"};
    };
    class RetrieveVehicleResponse
    {
        module = "VirtualGarage";
        parameters[] = {"STRING","STRING"};
    };

    class StoreVehicleRequest
    {
        module = "VirtualGarage";
        parameters[] = {"STRING","STRING"};
    };

    class StoreVehicleResponse
    {
        module = "VirtualGarage";
        parameters[] = {"STRING"};
    };
    class InsertClaimedVehicle
    {
        module = "ClaimVehicle";
        parameters[] = {"STRING","STRING"};
    };
};

 

3 people like this

Share this post


Link to post
Share on other sites

The exceptions thrown in this code are hilarious.

2 people like this

Share this post


Link to post
Share on other sites

you should have to have a code lock in order to do this :D

Share this post


Link to post
Share on other sites
44 minutes ago, CEN said:

you should have to have a code lock in order to do this :D

... that is already how it works, lol.

2 people like this

Share this post


Link to post
Share on other sites

No doubt I've screwed something.. I don't use BE and have only got the admin functions enabled in infiSTAR.

I find a spawned vehicle on the map ( in this case it was astock Exile Lada) and I get the option to claim. When activated, it removes a codelock that I bought from the trader (I know sometimes stuff doesn't work if you spawn it in). I get to input a code which it confirms. Now I get the option to unlock but nothing happens from that point on. I can't unlock but I can claim again and thereby have another codelock removed with the same results.

This is what is shown in my rpt

Spoiler

"ExileServer - Network message dispatch failed: Forbidden message name! Payload: ["vSnwRfYi","InsertClaimedVehicle",["2:797","1234"]]"

 

Share this post


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

you should have to have a code lock in order to do this :D

 

On 04/04/2016 at 10:46 PM, Taylor Swift said:

Allows players to claim server-spawned non-persistent vehicles with a codelock.

^^^^^^^^^^^^^  Not sure if blind or retarded?

2 people like this

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.