> For the complete documentation index, see [llms.txt](https://code-after-sex.gitbook.io/script-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://code-after-sex.gitbook.io/script-documentation/cas-event-system/troubleshooting.md).

# Troubleshooting

Fix common CAS Event System problems: ticket messages, host approval, event times and time zones, missing booths and cas\_fwlibs errors.

## Messages

| Message                                                                  | What it means                                                                     | What to do                                                       |
| ------------------------------------------------------------------------ | --------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| You already have an active event and cannot create another one.          | Your character hosts an event that hasn't finished.                               | Wait until 10 minutes after it starts.                           |
| Failed to create event.                                                  | The event could not be saved.                                                     | Check the `oxmysql` errors in the server console.                |
| There are no event tickets available here.                               | No upcoming event at this location has tickets left.                              | Nothing to buy yet.                                              |
| You do not have enough money. You need $X.                               | Not enough cash for the ticket.                                                   | Bring more cash.                                                 |
| Tickets for this event are sold out.                                     | The last ticket went to someone else.                                             | Your money was returned.                                         |
| This ticket is invalid.                                                  | The item has no ticket details, for example a ticket given with an admin command. | Buy the ticket at the booth.                                     |
| This ticket does not match the current event.                            | The ticket is for another event, or for a different date at this location.        | Use it at the right event.                                       |
| The event has not started yet. There are X minutes left until it starts. | The doors open 10 minutes before the start.                                       | Come back later.                                                 |
| The event has already started. You are too late to join.                 | More than 10 minutes have passed since the start.                                 | The ticket can't be used any more.                               |
| You are not near any event area.                                         | You are outside every location's radius.                                          | Walk into the event area.                                        |
| The event host is not available right now.                               | Host approval is on and the host is offline.                                      | Wait for the host, or set `Config.CheckTicketByCreator = false`. |
| You need to be near the event host to use this ticket.                   | The host is more than 5 metres away.                                              | Walk up to the host.                                             |

## Common problems

**The event starts at the wrong time.** The chosen time is compared with the server's clock. If the server runs in another time zone, the event opens at that time zone's hour. Pick the start time in server time.

**No ticket seller at the location.** Check the location's `shop.coords` and `shop.pedHash`. The seller is placed on the ground near those coordinates.

**Guests can't see players outside the event.** That is the private event area working as intended. Everyone inside entered with a ticket. Leaving the radius returns a guest to the normal world.

**The event area overlaps another script's instance.** Change `Config.RoutingBucket` to a number no other resource uses.

**`Unable to load CASFW` in the console.** Install [`cas_fwlibs`](https://github.com/codeaftersex/cas_fwlibs) and start it before `cas-eventticket`.
