Set "lastinv"

Please post any questions about developing your plugin here. Please use the search function before posting!
User avatar
BackRaw
Senior Member
Posts: 537
Joined: Sun Jul 15, 2012 1:46 am
Location: Germany
Contact:

Set "lastinv"

Postby BackRaw » Wed Jul 18, 2018 6:27 am

Hi,

is there any way to set the value for lastinv via player.client_command() or something else?
I'm trying to set the property behind it only without causing the player to actually use it like you would with

Syntax: Select all

player.client_command('use weapon_knife', True)
for example.

Thanks!
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Re: Set "lastinv"

Postby L'In20Cible » Wed Jul 18, 2018 7:16 am

User avatar
BackRaw
Senior Member
Posts: 537
Joined: Sun Jul 15, 2012 1:46 am
Location: Germany
Contact:

Re: Set "lastinv"

Postby BackRaw » Wed Jul 18, 2018 9:47 pm

L'In20Cible wrote:Player.last_weapon

I should've looked through the data files... thank you very much!

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 31 guests