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

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: 10

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

RedM/CFX – Could not get title access token from the Social Club. Blog
Tutorails for Redm, CFX, or Vorp Tutorial: My client crashes when I test my new code? – RedM Server – Lua Blog
St Denis Funeral with Obituary Blog
RedM Tutorial: Cigarettes and Cigars / Syn Crafting Blog
Server Thumbnail How do I connect to a test server? Blog
Tutorails for Redm, CFX, or Vorp How do I boost my favorite redm server? Blog

Newsletter



Holiday Events

There are no upcoming events.

Archive

  • May 2023
  • April 2023
  • 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

June 2023
M T W T F S S
 1234
567891011
12131415161718
19202122232425
2627282930  
« May    

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.