Jump to content

[kxsf]vehicleweapon. Ставить оружие на транспорт


Recommended Posts

Всем снова добрый день и чтобы не затягивать все, перейдем сразу к вопросу. Есть у кого-то расшифрованные файлы из скрипта [kxsf]vehicleweapon? Мне не важно какой версии, хоть самой первой. Я пытался добавить оружие на транспорт, и у меня получилось, и даже стреляло, но оказывается это видел только я. Пытался сделать триггером через серверную часть и из него снова в клиентскую, оружие тоже работало, тоже стреляло, но это снова видел только я. Меня даже устроит любой рабочий кусок кода, не обязательно расшифрованный тот скрипт. Снова же буду очень благодарен :)

Немного материалов:

https://community.multitheftauto.com/index.php?p=resources&s=details&id=5711 - установка оружия на машину

https://wiki.multitheftauto.com/wiki/CreateWeapon - создание оружия

https://wiki.multitheftauto.com/wiki/SetWeaponState - действие оружия

P.S. В английских темах нашел ответ.

Link to comment

Читайте внимательно вики:

triggerClientEvent 

SendTo: The event will be sent to all players that are children of the specified element. By default this is the root element, and hence the event is sent to all players. If you specify a single player it will just be sent to that player. This argument can also be a table of player elements. (Этот аргумент означает, кому сервер отправит эти данные).

Link to comment

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.
×
×
  • Create New...