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
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.
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
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?
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
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,
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.
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.