SA-MP Forums Archive
Mapping Help Please - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Mapping Help Please (/showthread.php?tid=638550)



Mapping Help Please - SilverMapper - 02.08.2017

i want help in mapping objects in car
i want to add objects on car how can i add pls help me i need help so i can map objects on cars bikes




thnx


Re: Mapping Help Please - TopShooter2 - 02.08.2017

PHP код:
AttachObjectToVehicle(objectidvehicleidFloat:fOffsetXFloat:fOffsetYFloat:fOffsetZFloat:fRotXFloat:fRotYFloat:RotZ
Example:

PHP код:
new Dildo;
public 
OnGameModeInit()
{
     
Dildo CreateObject(4512412.1231491.231499,123491.231491.231491.231100);
     
AttachObjectToVehicle(Dildo132XYZFXFY);
     return 
1;

All X,Y,Z Coordinates aren't correct, just showing you an example.


Re: Mapping Help Please - Suttix - 02.08.2017

Use texture studio master( https://github.com/Pottus/Texture-Studio ).

STEPS:
1. Open samp-server.exe and join your localhost server
2. When you're in game then type /newmap (to create new project)
3. type /avnewcar [CAR ID] to create a vehicle you want to attach object on
4. type /avsel [car index] to select a car you want to attach object on
5. type /cobject [object ID] to create object which you wanna attach to vehicle
6. type /sel [object index] to select object
7. type /avsel to attach object to a vehicle
8. type /editobject to edit object :P
9. When you finish your editing then go /avexport or /avexportall to export code for pawno and you'd find code in "scriptfiles" folder


btw. you have /thelp to see all commands

+rep if this helped :P


Re: Mapping Help Please - SilverMapper - 03.08.2017

Texture Studio Is Not Helping Me In Attaching Objects

so i need help pls


Re: Mapping Help Please - SilverMapper - 03.08.2017

pls help


Re: Mapping Help Please - Suttix - 03.08.2017

I don't understand what do you want? If you wanna attach object to a vehicle then read my previous reply.
?


Re: Mapping Help Please - SilverMapper - 03.08.2017

i did what u said but after all one i started it in my script it not working the object is not attached and car going but object now moving


Re: Mapping Help Please - Sew_Sumi - 03.08.2017

I used to use the Jernejls map editor, spawn a car at 0,0,0 facing 0, and add the objects onto it, then check the offsets/rotations off that. Because the car is 0,0,0,0 then all the coordinates are simply what the attachobject needs.


Re: Mapping Help Please - Suttix - 03.08.2017

Quote:
Originally Posted by SilverMapper
Посмотреть сообщение
i did what u said but after all one i started it in my script it not working the object is not attached and car going but object now moving
Give me a code


Re: Mapping Help Please - SilverMapper - 03.08.2017

Код:
#include <a_samp>
#include <streamer>

new object;

public OnFilterScriptInit()
{ 

    object = CreateVehicle(411,2069.605,1359.476,10.671,2.576,6,0,-1);
    AttachObjectToVehicle(object, 411,2069.690185, 1356.396972, 11.059659, 0.000000, 0.000000, 0.000000);
} 

public OnFilterScriptExit()
{ 
    DestroyVehicle(object);
} 

public OnVehicleSpawn(vehicleid)
{ 
    if(vehicleid == object)
    {
    }
}
i used this but it wont showing me the object attached to it