Jump to content

help draw account


pepsi18

Recommended Posts

Posted

as I can do to draw the user name

someone help plis

client

function draw() 
 dxDrawText(owner, x*348, y*350, 391, 435, tocolor(255,255,255, 252), 0.87*y, "bankgothic", "left", "top", false, false, true, false, false) 
 end 

server

  
 function user () 
 local owner = getAccountName(getPlayerAccount( source ) )  
 end 

Posted

getAccountName is a Server side function, Your code is client side.

If you're looking for a cheap paid scripter, don't hesitate to contact me.

Great minds discuss ideas, Average minds discuss events and small minds discuss people.

Posted (edited)

test the triggerSideEvent, didn't work , because the text , of the dxdraw ,

i think , you must use ,

getElementData  
 setElementData 

Edited by Guest

- New , Kill System

- New, GameMode Intro

- Leve / Exp System

- New nametag showing style

- New , Hud For Players

- Skin Selection from SA-MP

- Money System / Buy Weapons

- Drop Weapons

- New, Flood System

- New , Group Assign

- Gun license For Weapons

- Random Rule System For Money

Posted
you Need , to Use
triggerServerEvent 

it's esair than triggering form server to client .

Good Luck ,

I don't think it will help...(no offence)

If you're looking for a cheap paid scripter, don't hesitate to contact me.

Great minds discuss ideas, Average minds discuss events and small minds discuss people.

Posted

You should do something like this:

-- server 
addEventHandler ( "onPlayerJoin", root, function ( ) 
    setElementData ( source, "AccountUsername", "" ) 
end ) 
  
addEventHandler ( "onPlayerLogin", root, function ( _, a ) 
    setElementData ( source, "AccountUsername", getAccountName ( a ) ) 
end ) 
  
  
  
-- client 
owner = getElementData ( localPlayer, "AccountUsername" ) 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...