Jump to content

Tex Ranflas

Members
  • Posts

    4
  • Joined

  • Last visited

Tex Ranflas's Achievements

Vic

Vic (3/54)

0

Reputation

  1. It works. Does resourceRoot means actually player who got the client resource on its computer?
  2. Hi. Here we go, I can't see new texture and also - can't see the output message. What is wrong with this? Texture file is actually existing in player's resource in models folder. function loadPlayerTXD() playertxd = engineLoadTXD("models/omyst.txd") engineImportTXD(playertxd, 60) outputChatBox("Player skin loaded!", getRootElement()) end addEventHandler("OnClientResourceStart", getRootElement(), loadPlayerTXD()) --
  3. Hey. I'm just wondering if players with different resolution see the same coordinates of drawn image using this function: https://wiki.multitheftauto.com/wiki/DxDrawImage Or there is something I don't know about (which is actually very possible scenario)?
  4. Hello, guys. Well, I just got to Lua straight from PAWN (SA:MP) and there's a little question I want to share with you. I'm about to create vehicle for player after player joined to the server. Okay, this ain't no problem. The thing is, I just wanna create some kinda ID to that and stick it with player that I would be able to do some action with certain player's vehicle. In PAWN, it may look like this, that's simple: new pVehicle[MAX_PLAYERS]; //create dimensional array (is there different name for that in Lua?) which will contain vehicle ID for every player //somwhere in some global function which contains playerid parameter (ability to get player id, ain't got no place in MTA by default from what I know, here's the point) pVehicle[playerid] = CreateVehicle(..); //and then, we can do anything we want with player's vehicle - not all or the last created one SetVehiclePos(pVehicle[playerid], ...); Is it supposed to be client-side script which is calling just for one player? Explain, please. Thanx for any help.
×
×
  • Create New...