Jump to content
Sign in to follow this  
miguel93041

Scripting command 'call' is not allowed to be remotely executed

Recommended Posts

Im getting this error always i try to call something, making my mission garbage.

 

I tried adding exceptions in CfgRemoteExec but its not working?

Scripting command 'call' is not allowed to be remotely executed

#define F(NAME,TARGET) class NAME { \
    allowedTargets = TARGET; \
};

F(bis_fnc_call,CLIENT)
F(bis_fnc_spawn,CLIENT)

Share this post


Link to post
Share on other sites

Thats what i´ve said? I think.

I added them to CfgRemoteExec and its not working..

#define F(NAME,TARGET) class NAME { \
    allowedTargets = TARGET; \
};

#define ANYONE 0
#define CLIENT 1
#define SERVER 2

class CfgRemoteExec {
    class Functions {
        mode = 1;
        jip = 0;

        /* Client only functions */
        F(life_fnc_jail,CLIENT)
        F(life_fnc_moveIn,CLIENT)
        F(life_fnc_restrain,CLIENT)
        F(life_fnc_robPerson,CLIENT)
        F(life_fnc_searchClient,CLIENT)
        F(TON_fnc_player_query,CLIENT)
        F(life_fnc_knockedOut,CLIENT)
        F(life_fnc_robReceive,CLIENT)
        F(life_fnc_tazeSound,CLIENT)
        F(life_fnc_copSiren,CLIENT)
        F(life_fnc_medicSiren,CLIENT)
        F(life_fnc_giveDiff,CLIENT)
        F(life_fnc_gangInvite,CLIENT)
        F(TON_fnc_clientGangKick,CLIENT)
        F(TON_fnc_clientGangLeader,CLIENT)
        F(TON_fnc_clientGangLeft,CLIENT)
        F(life_fnc_lightHouse,CLIENT)
        F(life_fnc_medicRequest,CLIENT)
        F(life_fnc_revived,CLIENT)
        F(life_fnc_receiveItem,CLIENT)
        F(life_fnc_receiveMoney,CLIENT)
        F(TON_fnc_clientGetKey,CLIENT)
        F(life_fnc_soundDevice,CLIENT)
        F(life_fnc_wireTransfer,CLIENT)
        F(life_fnc_pickupMoney,CLIENT)
        F(life_fnc_pickupItem,CLIENT)
        F(life_fnc_gangCreated,CLIENT)
        F(life_fnc_gangDisbanded,CLIENT)
        F(life_fnc_jailMe,CLIENT)
        F(SOCK_fnc_dataQuery,CLIENT)
        F(SOCK_fnc_insertPlayerInfo,CLIENT)
        F(SOCK_fnc_requestReceived,CLIENT)
        F(life_fnc_adminid,CLIENT)
        F(life_fnc_impoundMenu,CLIENT)
        F(life_fnc_garageRefund,CLIENT)
        F(life_fnc_addVehicle2Chain,CLIENT)
        F(life_fnc_vehicleAnimate,CLIENT)
        F(life_fnc_spikeStripEffect,CLIENT)
        F(life_fnc_bountyReceive,CLIENT)
        F(life_fnc_wantedList,CLIENT)
        F(life_fnc_removeLicenses,CLIENT)
        F(life_fnc_admininfo,CLIENT)
        F(TON_fnc_clientMessage,CLIENT)
        F(life_fnc_licenseCheck,CLIENT)
        F(life_fnc_licensesRead,CLIENT)
        F(life_fnc_copSearch,CLIENT)
        F(life_fnc_copLights,CLIENT)
        F(life_fnc_ticketPrompt,CLIENT)
        F(life_fnc_ticketPaid,CLIENT)
        F(life_fnc_freezePlayer,CLIENT)
		F(BIS_fnc_execVM,CLIENT)
		F(BIS_fnc_effectKilledAirDestruction,CLIENT)	
		F(BIS_fnc_effectKilledSecondaries,CLIENT)
		F(BIS_fnc_objectVar,CLIENT)
		F(bis_fnc_call,CLIENT)
		F(bis_fnc_spawn,CLIENT)

        /* Server only functions */
        F(bis_fnc_execvm,SERVER)
		F(bis_fnc_call,SERVER)
		F(bis_fnc_spawn,SERVER)
        F(life_fnc_wantedBounty,SERVER)
        F(TON_fnc_getID,SERVER)
        F(life_fnc_jailSys,SERVER)
        F(life_fnc_wantedRemove,SERVER)
        F(life_fnc_wantedAdd,SERVER)
        F(TON_fnc_insertGang,SERVER)
        F(TON_fnc_removeGang,SERVER)
        F(TON_fnc_updateGang,SERVER)
        F(TON_fnc_updateHouseTrunk,SERVER)
        F(TON_fnc_sellHouse,SERVER)
        F(TON_fnc_managesc,SERVER)
        F(TON_fnc_spikeStrip,SERVER)
        F(life_fnc_wantedCrimes,SERVER)
        F(life_fnc_wantedFetch,SERVER)
        F(life_fnc_wantedProfUpdate,SERVER)
        F(DB_fnc_queryRequest,SERVER)
        F(DB_fnc_insertRequest,SERVER)
        F(DB_fnc_updatePartial,SERVER)
        F(DB_fnc_updateRequest,SERVER)
        F(TON_fnc_chopShopSell,SERVER)
        F(TON_fnc_setObjVar,SERVER)
        F(TON_fnc_keyManagement,SERVER)
        F(TON_fnc_vehicleDelete,SERVER)
        F(TON_fnc_spawnVehicle,SERVER)
        F(TON_fnc_getVehicles,SERVER)
        F(TON_fnc_vehicleStore,SERVER)
        F(SPY_fnc_observe,SERVER)
        F(TON_fnc_pickupAction,SERVER)
        F(TON_fnc_cleanupRequest,SERVER)
        F(TON_fnc_updateHouseContainers,SERVER)
        F(SPY_fnc_cookieJar,SERVER)
        F(TON_fnc_vehicleCreate,SERVER)
        F(TON_fnc_addHouse,SERVER)
        F(TON_fnc_addContainer,SERVER)
        F(TON_fnc_sellHouseContainer,SERVER)
        F(TON_fnc_deleteDBContainer,SERVER)

        /* Functions for everyone */
        F(life_fnc_broadcast,ANYONE)
        F(life_fnc_animSync,ANYONE)
        F(life_fnc_demoChargeTimer,ANYONE)
        F(life_fnc_corpse,ANYONE)
        F(life_fnc_colorVehicle,ANYONE)
        F(life_fnc_lockVehicle,ANYONE)
        F(life_fnc_flashbang,ANYONE)
        F(life_fnc_jumpFnc,ANYONE)
        F(SPY_fnc_notifyAdmins,ANYONE)
        F(life_fnc_setFuel,ANYONE)
        F(life_fnc_pulloutVeh,ANYONE)
        F(life_fnc_pushFunction,ANYONE)
        F(life_fnc_simDisable,ANYONE)

    };

    class Commands {
        mode = 1;
        jip = 0;

        F(setFuel,ANYONE)
        F(addWeapon,ANYONE)
        F(addMagazine,ANYONE)
        F(addPrimaryWeaponItem,ANYONE)
        F(addHandgunItem,ANYONE)
    };
};

Share this post


Link to post
Share on other sites

You haven't added script command 'call' do the list, have you?

Its BIS_FNC_call no?

 

I have readed something about they have changed the function to "call" instead of "Bis_fnc_call" but how it is just "call" function like this;

F(call,CLIENT)

Share this post


Link to post
Share on other sites

 

Its BIS_FNC_call no?

 

No

 

I tried adding exceptions in CfgRemoteExec but its not working?

Scripting command 'call' is not allowed to be remotely executed

 

 

 

You haven't added script command 'call' do the list, have you?

 
  • Like 1

Share this post


Link to post
Share on other sites

No

 

 

You haven't added script command 'call' do the list, have you?

 

Wow!! I have find it (i think it is)

 

In the CfgRemoteExec webpage of bohemia you can see this:

Format

class CfgRemoteExec
{        
       // List of script functions allowed to be sent from client via remoteExec
       class Functions
       {
               // State of remoteExec: 0-turned off, 1-turned on, taking whitelist into account, 2-turned on, however, ignoring whitelists (default because of backward compatibility)
               mode = 2;
               // Ability to send jip messages: 0-disabled, 1-enabled (default)
               jip = 1;
               /*your functions here*/
               class YourFunction1
               {
                      allowedTargets=0; // can target anyone (default)
                      jip = 0; // sending jip messages is disabled for this function (overrides settings in the Functions class)
               };
               class YourFunction2 { allowedTargets=1; }; // can target only clients
               class YourFunction3 { allowedTargets=2; }; // can target only the server
       };        
       // List of script commands allowed to be sent from client via remoteExec
       class Commands
       {
              /*your commands here*/
              class YourCommand1 { allowedTargets=0; jip=0; } // can target anyone, sending jip is turned off (overrides settings in the Commands class)
       };
};

So i was thinking about the class functions all time when in reality its class commands :wacko: :unsure:

Share this post


Link to post
Share on other sites

Huh? You have class Commands in description.ext entry you provided?

 

Yes the code its from this webpage https://community.bistudio.com/wiki/CfgRemoteExec

but i have a single file for cfgremoteexec

 

 

I tested it minutes ago and it works now, the server can make calls. But im having another problem.

I have a keyHandler with case 42 etc. calling functions on pressing that key.

Its there any class command or something to keys? because the keys arent working..

Share this post


Link to post
Share on other sites

If i were you I would just do the normal syntax for cfgremoteexec

 

not this

 

F(life_fnc_robPerson,CLIENT)

 

instead this

 

life_fnc_robPerson { allowedTargets=1; };

 

 

this is SQF

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×