Помогите с Lua для gmod
Надо убрать текст, когда убираю тест из скобок в игре не могу сесть на транспорт
This server is using Seat Weaponiser!
Double-tap the context key (C by default) or bind a key to weaponseats_toggle to use it!
To toggle the in-seat crosshair, use the convar weaponseats_enablecrosshair 1 or 0.
hook.Add("CanPlayerEnterVehicle", "BFG_WeaponSeats_PlayerWeaponEnabler", function(ply, vehicle, role)
if ply:GetNWBool("SeatWeapon_Usage_Allowed", false) then
ply:SetAllowWeaponsInVehicle(true)
else
ply:SetAllowWeaponsInVehicle(false)
end
if not ply.WeaponSeatsInfo_Shown then
ply:SendLua([[chat.AddText(Color(0, 255, 50), "This server is using Seat Weaponiser! \n", Color(50, 255, 255), "Double-tap the context key (C by default) or bind a key to weaponseats_toggle to use it!")]])
ply:SendLua([[chat.AddText(Color(255, 0, 0), "To toggle the in-seat crosshair, use the convar weaponseats_enablecrosshair 1 or 0.")]])
ply.WeaponSeatsInfo_Shown = false
end
end)
Аддон находиться в мастерской стим. Seat Weaponiser 2 версия
Замени "ply:SendLua" на "--ply:SendLua" во всем скрипте.