Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local text = {
- ["Kontanter"] = {
- kontanter = { ['x'] = -1388.68, ['y'] = -586.571, ['z'] = 30.2193, nom = "gĂĽ in i ~p~Bahamas NightClub"},
- },
- }
- Drawing = setmetatable({}, Drawing)
- Drawing.__index = Drawing
- function Drawing.draw3DText(x,y,z,textInput,fontId,scaleX,scaleY,r, g, b, a)
- local px,py,pz=table.unpack(GetGameplayCamCoords())
- local dist = GetDistanceBetweenCoords(px,py,pz, x,y,z, 1)
- local scale = (1/dist)*10
- local fov = (1/GetGameplayCamFov())*100
- local scale = scale*fov
- SetTextScale(scaleX*scale, scaleY*scale)
- SetTextFont(fontId)
- SetTextProportional(1)
- SetTextColour(r, g, b, a)
- SetTextDropshadow(0, 0, 0, 0, 255)
- SetTextEdge(2, 0, 0, 0, 150)
- SetTextDropShadow()
- SetTextOutline()
- SetTextEntry("STRING")
- SetTextCentre(1)
- AddTextComponentString(textInput)
- SetDrawOrigin(x,y,z+2, 0)
- DrawText(0.0, 0.0)
- ClearDrawOrigin()
- end
- function Drawing.drawMissionText(m_text, showtime)
- ClearPrints()
- SetTextEntry_2("STRING")
- AddTextComponentString(m_text)
- DrawSubtitleTimed(showtime, 1)
- end
- function msginf(msg, duree)
- duree = duree or 500
- ClearPrints()
- SetTextEntry_2("STRING")
- AddTextComponentString(msg)
- DrawSubtitleTimed(duree, 1)
- end
- Drawing.draw3DText(kontanter, kontanter, kontanter - 1.100, positionFrom.nom, 1, 0.2, 0.1, 255, 255, 255, 215)
- (text) do
- if(Vdist(pos.x, pos.y, pos.z, kontanter, kontanter, kontanter) < 2.0)then
- ClearPrints()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement