[Release] Area of Patrol (Set AOP) [AOP] [1.5]

roleplay
fivem-scripts
release
aop
standalone

#1

AOP By FAXES

About
This is a simple script that will set a RP area when a command is entered (see images). As of update 1.2 the RP area will also be displayed in the server list under the map title. Below is all the information you need to get started with this script.


Usage / Common Commands

/aoplist - Displays a list of all the scripts commands
/pton, /ptoff - On / Off for Peace time
/aopvote - Sends a message for players to vote for a RP area. Note; this is not recorded its just a message output
/aop[District Eg; state, sandy, ls, bc etc.]

In the Download

__resource.lua
client.lua
server.lua

Requirements
None this is a standalone script as with all my resources.


Pictures

20180226220618_1



Capture2
Capture
Capture3


Downloads:
Both are on latest update


Change-log(s)
Click a version below to go to the update post.
1.0
1.1
1.2
1.3
1.4(.2)
1.5


Installation

  1. Place in your resources folder, just like any other resource

  2. Go to the Wiki and follow instructions for Ace permission set up

Special Thanks
@jellyton69 @Blumlaut @Syntasu for scripting help.
Thanks to @Cheleber for Ace help
@KevKilo9 for the idea of this script

Further Support
If you have any issues, comments or suggestions please put them below. :australia:


[Request] RP Area Change
[Release] Server Restart Notification [1.2]
[Ideas/Requests] Multiple ideas and requests for scripts
#2

Awesome, thanks for releasing


#3

Does it permanently show the AOP until changed so people don’t keep asking what the AOP is? Nice release though by the way!


#4

thanks, great job! :+1:


#5

No it does not. I might update to change the spawn points in the area of the RP so people know. or a join message in chat that says it idk.

I’m going to work on permissions first though so people don’t change it themselves.

@Johnyf1 Thanks appreciate that


#6

Okay, thanks for the heads up. Will be using this on my server.


#7

Question: If the AOP is set somewhere will new players spawn inside the AOP? Also a slight suggestion.


#8

@JackHodgson Maybe ^^^


#9

Agreed. Set the spawn points with AOPs and keep it showing constantly! Will definitely be using this, thanks for the script.


#10

You should add it so when a player joins, it displays the current spawn area.

Edit:

@FAXES You could do it with this function with an event handler “onClientMapStart”


#11

Im making one of these that sends a notification at the bottom from the admin abit like a text message


#12

Update 1.1

Change-log:

  • Added Mirror Park to AOP list.
  • Added Permission System Using Aces (Read the Wiki). this script now requires permissions (as requested) to use the commands. See the original post for the Wiki link to set up the Ace permissions. Thanks @Cheleber for Ace permission help :slight_smile:
  • Changed Event Names
  • Updated Terms of use in GitHub
  • Updated GitHub description
  • Removed colors in /aoplist (See new screen shots on the forums)

#13

Update 1.2

Change-log

  • Added new function that displays the current AOP (or RP) area in the server list
    Capture
    Capture2

  • Also added a new feature for when peace time is enabled it will also show on the player list
    Capture3

  • When peace time is turned off using /ptoff the Game Type will be put back on Freeroam. You can always change this on line 186 of server.lua

Overall look in the server list
Capture

Pictures and information updated in the original post


#14

Works great thanks for this. Love it.


#15

where do i find this post ?


#16

Which post?


#17

nvm found it
the other owner of my server already sended it to me but i didnt see it


#18

Update 1.3

A small update

  • Added a feature for when the resource is first loaded to say RP : Not Set under the map name in the server list.

I may have a auto select RP area every x mins having it on a timer or random pick in the near future.

I am also focusing on getting the message to display the RP area when you join.

Download in the original post, GitHub and here


#19

I can not find where to put me hex decimal, can you tell me what file and or what line please


#20

You need to place it in the Ace permissions read the wiki for more in depth info