Hi there a quick run down, I am messing around with some scripts for my local server, (So it wont matter if I mess up!). Any ways I wanted to spawn a shop worker within the shop when doing a command, I wont go in to why at this point. Any ways I have this code here…
RegisterCommand(‘ped’, function()
local result = local RequestMenuPedModel(mp_m_shopkeep_01) = ESX.Game.RequestModel(mp_m_shopkeep_01)
print(json.encode())
end)
I am wondering if this will work? Or what even that will do? Could you advise me please?
Thank you. (Yes im a dummy in making scripts so be nice!)
Thank you! PS does this have to be server side I take it? Thank you again! I also wanted it for esx shopkeeper job that I am trying to do. Hard for first timer. Any advice will be appricated oh and credited!
This is client sided. (you can see it because of the RequestModel and SetModelAsNoLongerNeeded, these Natives Request the Model so the client can see it, otherwise it would not be there)
There is one thing I get confused about is (souce) and ary or what ever they are called. Can someone explain what it is? Do you put your event in there or something? Thank you.
Hi sorry to bother ya but need some advice again. I am trying to get ai to respond when they are shooting but I dont want it gta v style. (As I disabled that)
function GetActivePlayers(name, message)
is IsPedShooting = (true) SetDispatchCopsForPlayer(player, if element == true then
add SendDuiMessage = (meessage "~g~Cops are being sent!")
end)
SetPlayerWantedLevel(
2,
wantedLevel = wantedLeveld player = GetPlayerByEntityID
)
(PS: I did try and send message to discord that a player is shooting but failed! Lol Learn and try cant feck up lol)
I think u get the giff of what im trying to achive! Thank you, you can add me here and I send my discord if u want? Thanks again dude. (Sorry if female)