BucketBull Posted December 29, 2016 Posted December 29, 2016 Hey guys. It says attempt to cal global "dxDraw3DText"(a nil value). Do you have any opinion why isnt it working? function kocsitext() local veh = getPedOccupiedVehicle(localPlayer) local jarmuid = getElementModel(veh) local x,y,z = getElementPosition(veh) local text = dxDraw3DText("Tipus: #800000",x,y,z,2,"arial",255,255,255,4) end
MR.S3D Posted December 29, 2016 Posted December 29, 2016 use this function https://wiki.multitheftauto.com/wiki/DxDrawTextOnElement 1
myonlake Posted December 29, 2016 Posted December 29, 2016 It's not working because there is no such function as dxDraw3DText. You need to implement that yourself, or use that function linked to you in the above reply.
BucketBull Posted December 29, 2016 Author Posted December 29, 2016 Now it is working. Thanks for the help!
^iiEcoo'x_) Posted December 29, 2016 Posted December 29, 2016 local dxDraw3DText = exports.3D_DX_Texts:dxDraw3DText local ped = createPed ( id, x, y, z ) addEventHandler( "onClientResourceStart", resourceRoot , function( ) local x, y, z = getElementPosition( ped ) dxDraw3DText( "text", x, y, z + 3 ) end ) https://community.multitheftauto.com/in ... ls&id=7613
MR.S3D Posted December 29, 2016 Posted December 29, 2016 1 hour ago, BucketBull said: Now it is working. Thanks for the help! you're Welcom.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now