local jobPed = {}local job_Font = dxCreateFont(\"files/font.TTF\", 9)local job_Font2 = dxCreateFont(\"files/font.TTF\", 10)local job_PedPos = {{113, 1308.5190429688, -1321.4002685547, -33.200000762939, \"George\"},}function createPeds() for index,value in ipairs (job_PedPos) do if isElement(jobPed[index]) then destroyElement(jobPed[index]) end jobPed[index] = createPed(value[1], value[2], value[3], value[4], value[6], value[7]) setPedRotation(jobPed[index], 180) setElementFrozen(jobPed[index], true) jobPed[index]:setData(\"ped:job\", true) jobPed[index]:setData(\"ped:name\",value[5]) jobPed[index]:setData(\"name:tags\", \"Munkáltató\") --createBlip(value[2], value[3], value[4], 62) --setPedAnimation ( jobPed[index], \"INT_OFFICE\", \"OFF_Sit_Idle_Loop\", -1, true, false, false )endendaddEventHandler(\"onClientResourceStart\", getResourceRootElement(getThisResource()), createPeds)createPeds()
Hogyan bírnám beállítani hogy a 1783 as dimenzióba és 3 as interiorba legyen \"George\"? Próbálkoztam setElementDimension és Interiorral de valahogy nem akar összejönni:/ local jobPed = {}local job_Font = dxCreateFont(\"files/font.TTF\", 9)local job_Font2 = dxCreateFont(\"files/font.TTF\", 10)local job_PedPos = {{113, 1308.5190429688, -1321.4002685547, -33.200000762939, \"George\"},}function createPeds() for index,value in ipairs (job_PedPos) do if isElement(jobPed[index]) then destroyElement(jobPed[index]) end jobPed[index] = createPed(value[1], value[2], value[3], value[4], value[6], value[7]) setPedRotation(jobPed[index], 180) setElementFrozen(jobPed[index], true) jobPed[index]:setData(\"ped:job\", true) jobPed[index]:setData(\"ped:name\",value[5]) jobPed[index]:setData(\"name:tags\", \"Munkáltató\") --createBlip(value[2], value[3], value[4], 62) --setPedAnimation ( jobPed[index], \"INT_OFFICE\", \"OFF_Sit_Idle_Loop\", -1, true, false, false )endendaddEventHandler(\"onClientResourceStart\", getResourceRootElement(getThisResource()), createPeds)createPeds()
setElementInterior(jobPed[index], 3)setElementDimension(jobPed[index], 1783)
addEventHandler(\"onClientResourceStart\", getResourceRootElement(getThisResource()), createPeds)createPeds()