Tworzy nowy tekst 3D w świecie gry.
Syntax --- textData: TextData
local textHandle = Text3D : Register (textData)
--- textHandle:: number
Copy to clipboard Example local textHandle = Text3D : Register ({
text = 'Tekst' ,
scale = 0.5 ,
font = 0 ,
renderDistance = 20.0 ,
tracking = {
bone = 0 ,
offset = vec3 ( 0 , 0 , 0 ),
entity = PlayerPedId (),
},
})
Copy to clipboard Types TextData = {
textId : number,
coords : vector3,
text : string,
font ?: number,
dropShadow ?: boolean,
outline ?: boolean,
scale ?: number,
}
Copy to clipboard Usuwa text ze świata gry.
Syntax --- textId: number
Text3D : Remove (textId)
Copy to clipboard Example local textHandle = Text3D : Register ({
text = 'Tekst' ,
scale = 0.5 ,
font = 0 ,
renderDistance = 20.0 ,
tracking = {
bone = 0 ,
offset = vec3 ( 0 , 0 , 0 ),
entity = PlayerPedId (),
},
})
Text3D : Remove (textHandle)
Copy to clipboard Modyfikuje parametry TextData.
Syntax --- textId: number
--- params: TextData
Text3D : ModifyTextParams (textId, params)
Copy to clipboard Example local textHandle = Text3D : Register ({
text = 'Tekst' ,
scale = 0.5 ,
font = 0 ,
renderDistance = 20.0 ,
})
-- This is stupid example, use tracking!
while true do
Citizen. Wait ( 0 )
Text3D : ModifyTextParams (textHandle, {
coords = GetEntityCoords ( PlayerPedId ())
})
end
Copy to clipboard Types TextData = {
textId : number,
coords : vector3,
text : string,
font ?: number,
dropShadow ?: boolean,
outline ?: boolean,
scale ?: number,
}
Copy to clipboard Pozwala otrzymać obecne dane text'a.
Syntax --- textId: number
local textData = Text3D : GetTextData (textId)
--- textData: TextData
Copy to clipboard Example local textHandle = Text3D : Register ({
text = 'Tekst' ,
scale = 0.5 ,
font = 0 ,
renderDistance = 20.0 ,
})
local textData = Text3D : GetTextData (textHandle)
Copy to clipboard Types TextData = {
textId : number,
coords : vector3,
text : string,
font ?: number,
dropShadow ?: boolean,
outline ?: boolean,
scale ?: number,
}
Copy to clipboard