Skip to content
Course briefing · 18 min

Your first script

Create a clear, single-purpose startup behavior.

1

Scripts need a host

A full Script Hook V .NET script inherits from GTA.Script and has a public parameterless constructor. Its constructor is a useful place for one-time setup. This lab runs only that constructor’s body, with the surrounding class and runtime supplied by the exercise.

2

Start with one visible result

Write a constructor-body snippet that shows Welcome to my first mod exactly once. Avoid changing health or wanted level: the first script has one responsibility. A single notification is easier to validate than several unrelated actions.

3

Understand the real file boundary

The editor contains a method body, not a deployable .cs file. The packaging course shows the complete class wrapper. On a real PC you also need compatible runtime dependencies and a correctly placed script file.

Script Hook V .NET: script structure

Explore as a guest. Your current lab resumes in this browser session. Sign in before learning to save course completions to your account.

Sign in to save progress →