Renae Posted December 24, 2018 Share Posted December 24, 2018 (edited) So just trying to get a server set up here... the console outputs 'Hello World!" but the command /sethealth doesn't work, neither does the message displaying on spawn. using System; using GTANetworkAPI; namespace Trial { public class Main : Script { [ServerEvent(Event.ResourceStart)] public void ResourceStart() { NAPI.Util.ConsoleOutput("Hello World!"); } [ServerEvent(Event.PlayerSpawn)] public void OnPlayerSpawn(Client player) { player.SendChatMessage($"Hello! Welcome back, {player.Name}"); } [Command("sethealth")] public void CmdSetHealth(Client player, int health) { player.Health = health; player.SendChatMessage($"Your health has been set to: {health}"); } } } What am I doing wrong? /sethealth displays Unknown Command Edited December 24, 2018 by Renae Link to comment Share on other sites More sharing options...
JamesBeast Posted December 24, 2018 Share Posted December 24, 2018 This may be due to mismatched version of either one of the following files used, "server.exe", "bridge.dll", "server-files/bridge/runtime/bootstrapper.dll" or compiled code reference of "bootstrapper.dll/nuget gtanetwork api" Link to comment Share on other sites More sharing options...
Renae Posted December 24, 2018 Author Share Posted December 24, 2018 1 hour ago, Jaimuzu said: This may be due to mismatched version of either one of the following files used, "server.exe", "bridge.dll", "server-files/bridge/runtime/bootstrapper.dll" or compiled code reference of "bootstrapper.dll/nuget gtanetwork api" Well I know that server.exe is up to date because I can connect to the server on the latest rage. So how would I go about updating the other three? Link to comment Share on other sites More sharing options...
ZeroPointOne Posted August 22, 2023 Share Posted August 22, 2023 I have the same problem Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now