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

Is there a way to have scripts do something on restart or stop? Redm/CFX/LUA

Posted on December 16, 2022March 18, 2023 By Crimson Creek Team
————————————————– — Cleanup ————————————— — Always leave a space cleaner than you found it. ————————————————– AddEventHandler(‘onResourceStop’, function(resource) if resource == GetCurrentResourceName() then ClearPedTasksImmediately(PlayerPedId()) — do something on startup end end)

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

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

Post navigation

Previous Post: Is there a way to have scripts do something on startup? Redm/CFX/LUA
Next Post: How do I make a / chat command? Redm/CFX/LUA

Related Posts

Tutorails for Redm, CFX, or Vorp How do I make a / chat command? Redm/CFX/LUA Blog
Tutorails for Redm, CFX, or Vorp How do I use your ForagePlants script? Blog
vorp_weaponv2 store npcs floating Blog
Girls Night Gone Wild. RedM / Event: Ladies night Blog
Stash Ammo Pickups Blog
Tutorails for Redm, CFX, or Vorp When I use print statements, nothing prints. 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.