Skip to content

Natives (Objects) RU

Alexander edited this page Jun 1, 2017 · 1 revision

ГлавнаяФункцииОбъекты

Для получения более подробной информации посетите официальную SA-MP вики. Многие из данных функций схожи со стандартными.

  • CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_OBJECT_SD, Float:drawdistance = STREAMER_OBJECT_DD, areaid = -1, priority = 0)
    • The streaming distance (streamdistance) refers to how close the player needs to be to the object before it is streamed in by the plugin.
    • The draw distance (drawdistance) is a parameter used by the game that determines how close the player needs to be to the object before it is rendered on the player's screen.
  • DestroyDynamicObject(objectid)
  • IsValidDynamicObject(objectid)
  • GetDynamicObjectPos(objectid, &Float:x, &Float:y, &Float:z)
  • SetDynamicObjectPos(objectid, Float:x, Float:y, Float:z)
  • GetDynamicObjectRot(objectid, &Float:rx, &Float:ry, &Float:rz)
  • SetDynamicObjectRot(objectid, Float:rx, Float:ry, Float:rz)
  • MoveDynamicObject(objectid, Float:x, Float:y, Float:z, Float:speed, Float:rx = -1000.0, Float:ry = -1000.0, Float:rz = -1000.0)
  • StopDynamicObject(objectid)
  • IsDynamicObjectMoving(objectid)
  • AttachCameraToDynamicObject(playerid, objectid)
  • AttachDynamicObjectToObject(objectid, attachtoid, Float:offsetx, Float:offsety, Float:offsetz, Float:rx, Float:ry, Float:rz, syncrotation = 1)
    • This attaches a dynamic object to another dynamic object.
    • This requires kurta999's YSF plugin to be loaded.
  • AttachDynamicObjectToPlayer(objectid, playerid, Float:offsetx, Float:offsety, Float:offsetz, Float:rx, Float:ry, Float:rz)
  • AttachDynamicObjectToVehicle(objectid, vehicleid, Float:offsetx, Float:offsety, Float:offsetz, Float:rx, Float:ry, Float:rz)
  • EditDynamicObject(playerid, objectid)
  • IsDynamicObjectMaterialUsed(objectid, materialindex)
  • GetDynamicObjectMaterial(objectid, materialindex, &modelid, txdname[], texturename[], &materialcolor, maxtxdname = sizeof txdname, maxtexturename = sizeof texturename)
  • SetDynamicObjectMaterial(objectid, materialindex, modelid, const txdname[], const texturename[], materialcolor = 0)
  • IsDynamicObjectMaterialTextUsed(objectid, materialindex)
  • GetDynamicObjectMaterialText(objectid, materialindex, text[], &materialsize, fontface[], &fontsize, &bold, &fontcolor, &backcolor, &textalignment, maxtext = sizeof text, maxfontface = sizeof fontface)
  • SetDynamicObjectMaterialText(objectid, materialindex, const text[], materialsize = OBJECT_MATERIAL_SIZE_256x128, const fontface[] = "Arial", fontsize = 24, bold = 1, fontcolor = 0xFFFFFFFF, backcolor = 0, textalignment = 0)
  • GetPlayerCameraTargetDynObject(playerid)