[Standalone] [Paid] Sit Anywhere

Hm… really weird. Do you have any errors server side (in the server console) when restarting/starting the script? You could also try to just do ensure sit instead of restart sit, in case it hasn’t started in the first place.

It’s also perfectly fine getting support here, it’s what the forums are meant to be used for :smile:

Cheers

I do see now that it say "you do not have the entitlement to star sit’
I am set as a admin/god I do not see anywhere in the server config to set server owner.

The owner of the server key (sv_licenseKey) is who will be set as the owner of the server. Is your account the owner of the server key?

I see that in the server config but that was automatically filled out when I set up qbcore with my server host. Where do I get my own key?

Go to keymaster (https://keymaster.fivem.net/) and generate a server key there. Take the key you get and put it in the server.cfg (or equivalent) like this: sv_licenseKey keystring

That’s all it took!
Thanks for the amazing help!!

All good! Always happy to help! :grin:

1 Like

Hi, how should I go about adding a place to sit? I can only sit on the bench right now, I want my players to be able to sit on the couch in the house, how should I do that?

Hello!

I posted a mini “guide” on how to add new models/polys here: [Standalone] [Paid] Sit Anywhere - #15 by MadsL.

Quick tip: Find out if the couch is dynamic or not. If it is, then follow the models part of the guide, else follow the poly part.

I hope that helps,
Cheers

1 Like

ok

MadsL via Cfx.re Community <thiscamefrom@fivem.net> 于2022年7月29日周五 23:19写道:

1 Like

Do you think you could add support for les diables mrpd it would help a lot

2 Likes

I would have loved to have added support for that MLO, but it’s a paid one (understandably), so I don’t have a copy of it. If you wish to add the seats yourself then you could follow the guide I made here: [Standalone] [Paid] Sit Anywhere - #15 by MadsL

would it be possible to do it through my files maybe im not sure

1 Like

Anyone Got the cords for the chairs for “breze_court” MLO , i tried everything and can not get some of the seats to work.

1 Like

Hi I get this issue any ideas?

1 Like

That’s a lot of errors! I’ll take them one by one:

No such export RaycastCamera in resource qb-target
Are you running the latest qb-target? And is qb-target started before the sit script (you have renamed it qb-sit I believe). qb-target is supposed to have RaycastCamera as an export (qb-target/client.lua line 116).

No such export SendAlert in resource mythic_notify
If you don’t use mythic notify then you’ll have to set Config.UseNativeNotifiactions to true or add your own notification event/export at line 43 in client.lua.

error object is not a string and attempt to index a nil value (upvalue ‘data’)
This is more complicated, try to resolve the first issue on this list and see if that helps. If not, then just reach out again and I’ll try to assist.

Sorry for not responding right away. Hope this helps,

Cheers
Mads

Small “Update” (v. 1.0.8)
Replaced GetPlayerPed(-1) with PlayerPedId(), that’s literally all, but hey, it’s something.
I’m working on adding some more polyzone locations, I’ll post about it when It’s out.

Update!
Still working on some new polyzones, they’ll be out soon™.

Changelog for version 1.0.9:

  • Added 52 new chair, stool and couch models (mostly for house scripts)
  • Add the option to set the animation flag for seats/beds that use animations and not scenarios

If 2 people sit in the same place

2 people can’t sit in the same place, or at least not in theory. The script checks if any peds (so both NPC’s and players) are closer than x (0.5m if I don’t remember wrong) to the location you want to sit in. If there is a ped there it tries to find an alternative spot (on the same bench/sofa etc.), if no place could be located it just displays a message that the seat is occupied.

1 Like