it is by doing that we learn, you worry about three weeks ago I knew nothing, but by force enters the brain.
it’s an easy script edit this and save this in client.lua
function DrawText3Ds(x,y,z, text)
local onScreen,_x,_y=World3dToScreen2d(x,y,z)
local px,py,pz=table.unpack(GetGameplayCamCoords())
SetTextScale(0.35, 0.35)
SetTextFont(4)
SetTextProportional(1)
SetTextColour(255, 255, 255, 215)
SetTextEntry("STRING")
SetTextCentre(1)
AddTextComponentString(text)
DrawText(_x,_y)
local factor = (string.len(text)) / 370
DrawRect(_x,_y+0.0125, 0.015+ factor, 0.03, 41, 11, 41, 68)
end
you will have to put the coordinates here and the text is enough to replace the xyz by the coordinator and add a small text …
here ----------------------- function DrawText3Ds(x,y,z, text) I think you have to remove the parenthesis too no sure …
and of course for the script to work you need a resource so
write this text and save on _ressource.lua
resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
client_script "client.lua"
now put your two files client.lua and _ressource.lua in a file named as you want … example texte3d
and in server.cfg
start text3d