Skip to content
  • Fight Night
  • Server Release
  • Testing Sessions
  • Server Rules (All Servers)
  • (In) Territory Laws
  • City Laws
  • Drained Server Rules
  • Devastated Server Rules
  • Little Creek Server Rules
  • In For A Penny Server Rules
Territory

Territory

Western RP with a Twist

  • Calendar of Events
  • FAQ’s
  • Tutorials
  • Contact Staff
  • Server List
  • Server Rules (All Servers)
  • Toggle search form
Tutorails for Redm, CFX, or Vorp

When I call server resources that use “source” nothing happens.

Posted on December 9, 2022December 9, 2022 By Crimson Creek Team No Comments on When I call server resources that use “source” nothing happens.

Frequently ASKED Questions by THE Crimson Creek TEAM

When I call resources that use “source” nothing happens.

  1. Verify that source exists inside your server script by printing it.

server.lua
	print("source", source)

If it prints correctly and your still not getting results. Try this instead.

server.lua

print("source", source) local _source = source
print("_source", _source)

Then change any references from “source” to “_source” and retest.

If this works then what’s happening is “source” a global variable is being reset to either nil or an empty string by an outside service or script.  Your scripts server function can’t execute the calls it needs.  By setting it to “_source” you take control of the variable, and outside scripts or server functions can’t alter it.

Crimson Creek Team

Crimson Creek Team, a group of volunteers working together to have a good time RPing and running our servers.

See author's posts

Hits: 0

Blog, FAQ, Server Setup FAQs Tags:admin, cfx, change, color, config, configuration, custom, prompt, redm, vorp

Post navigation

Previous Post: How do I change the “Oh I found” message? ForagePlants
Next Post: When I use print statements, nothing prints.

Related Posts

Tutorails for Redm, CFX, or Vorp How do I use your ForagePlants script? Blog
Excalibur Blog
Tutorails for Redm, CFX, or Vorp RedM/CFX/VORP Project – steam key errors Blog
Tutorails for Redm, CFX, or Vorp RedM/CFX/VORP Project – local server, loading screen hangs indefinitely Blog
How do I do random in RedM/CFX/Lua? Blog
Tutorails for Redm, CFX, or Vorp Is there a way to have scripts do something on restart or stop? Redm/CFX/LUA Blog

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *


Newsletter



Holiday Events

There are no upcoming events.

Archive

  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022

Donations

Patreon

Kofi

There are no upcoming events at this time

February 2023
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728  
« Dec    

Copyright © 2023 Territory.

Powered by PressBook Masonry Dark

Loading...

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.