Mapping Help Please
#1

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
Reply
#2

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.
Reply
#3

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
Reply
#4

Texture Studio Is Not Helping Me In Attaching Objects

so i need help pls
Reply
#5

pls help
Reply
#6

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

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
Reply
#8

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.
Reply
#9

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
Reply
#10

Код:
#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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)