0% found this document useful (0 votes)
31 views1 page

Integrating Sunshine Autos Script Guide

This document provides two methods for using an example script in a game server: 1) Adding the script code to an existing main script by loading the sunshine auto class and database, then copying the command handling code. 2) Using the example script independently by specifying it as the gamemode in the server configuration file. It reminds the user to regularly save any changes to the vehicle database.

Uploaded by

Luke Page
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views1 page

Integrating Sunshine Autos Script Guide

This document provides two methods for using an example script in a game server: 1) Adding the script code to an existing main script by loading the sunshine auto class and database, then copying the command handling code. 2) Using the example script independently by specifying it as the gamemode in the server configuration file. It reminds the user to regularly save any changes to the vehicle database.

Uploaded by

Luke Page
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Using the Example Script.

Method One - Adding it to your own script


This example assumes your main script [Link] is in the same directory as your
[Link]

1. Check the file paths...


2. Under onScriptLoad( ), add the following;
// Load the class
dofile("sunshine/[Link]");
// Load into array 'MyVehicles'
[Link]("sunshine/[Link]");
// Remember to give me credits :-)
print( "=== Loaded Sunshine Auto's v1.1 - By rulk ===" );
3. Copy and paste all of the code under onPlayerCommand() into your own script.
4. Run the server and jump in-game.

Method Two - Using it independently


1. Put s_cmds.nut in the same directory as your [Link]
2. Open [Link], and put/change sqgamemode s_cmds.nut
3. Run the server and jump in-game.
Finally....
REMEMBER TO SAVE REGULARY!!
[Link]("sunshine/[Link]");

You might also like